Skip to content

feat: Add plain text mode for SMTP notifications - #1173

Draft
moesnow with Copilot wants to merge 2 commits into
mainfrom
copilot/feat-smtp-notification-plaintext
Draft

feat: Add plain text mode for SMTP notifications#1173
moesnow with Copilot wants to merge 2 commits into
mainfrom
copilot/feat-smtp-notification-plaintext

Conversation

Copilot AI commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Clients like Outlook treat HTML emails as attachments, making notifications unreadable. This adds a plain_text option to the SMTP notifier that sends emails as text/plain instead of text/html.

Changes

  • module/notification/smtp.py — Branch on plain_text param: send MIMEText("plain") directly; log a warning if an image was passed (silently ignored in plain text mode). HTML+image path unchanged.
  • app/setting_interface.py — Expose plain_text as a bool toggle in the SMTP notifier UI, with a description noting Outlook compatibility.
  • assets/config/config.example.yaml — Add notify_smtp_plain_text: false with a comment explaining the use case.

Copilot AI linked an issue Aug 6, 2026 that may be closed by this pull request
4 tasks
Co-authored-by: moesnow <11678347+moesnow@users.noreply.github.com>
Copilot AI changed the title [WIP] Add option to send SMTP notifications as plain text feat: Add plain text mode for SMTP notifications Aug 6, 2026
Copilot AI requested a review from moesnow August 6, 2026 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat]: SMTP通知纯文本

2 participants