EC-CUBE / EC-CUBE/ec-cube

HTMLメールを無効にできる機能が欲しい

Open
#5,013 0 comments 4 reactions 0 assignees View on GitHub
enhancement
Dominant language
PHP
Stars
788
Forks
719
Avg merge
3d 20h
Merged PRs (30d)
45

Description

## 概要(Overview)

HTMLメールを無効にしたい場合があります。

・HTMLの知識がない、HTMLメールの修正が手間だという場合
・いまだにHTMLメールを迷惑メールに分類するような設定が可能なメールサーバーもあるため、プレーンメールのみ送りたいという場合

現状HTMLメールを送らないようにするには、app配下とsrc配下のテンプレートファイルを削除することが一番簡単な方法だと思います。
例:Mail/order.html.twigを削除
(ただ出荷お知らせメールはHTMLのテンプレートを削除すると受注一覧でのプレビュー表示が崩れてしまう?)

app配下のテンプレートファイルだけを削除してもsrc配下のテンプレートファイルが読み込まれるため、両方削除する必要があります。

## 期待する内容(Expect) or 要望 (Requirement)

src配下のファイルを修正したくない・できない場合もあるため、設定でON/OFFができれば良いと思います。

あるいはapp配下に空のMail/xxx.html.twigを置くとHTMLメールが送られないということでも良いと思います。
現状は空のHTMLメールが送られると思います。

Contributor guide

Open the contributing guide

Research direction

Start by comparing the app and src Mail templates, including Mail/order.html.twig, and check how the HTML template is selected for sending and previewing. Define whether a setting or an empty app/Mail/xxx.html.twig should disable HTML while preserving previews, then verify that plain-text mail is sent without breaking the order list preview.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, php, symfony
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.