Skip to content

feat: reuse an Email Notifier connection for direct email - #342

Merged
jeyrb merged 3 commits into
mainfrom
email-notifier-connection-reuse
Nov 25, 2026
Merged

jeyrb merged 3 commits into
mainfrom
email-notifier-connection-reuse

Conversation

@jeyrb

@jeyrb jeyrb commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • When Home Assistant's SMTP integration isn't set up, the email transport now takes its direct SMTP connection from the custom email_notifier integration (microteq/email_notifier or Wheemer's fork). Its config entry uses the same keys as core SMTP. Only the connection, sender and sender name are used, not the account's default recipients. Core SMTP is still preferred when both are set up.
  • Docs: the reuse section of the email transport page covers Email Notifier. "Other Email Options" adds the Wheemer fork and notes that email_notifier.send can send to any address.
  • Docs: a new "What to Look For in an Email Integration" checklist on the email transport page: sending doesn't block Home Assistant, account settings are kept apart, failures are reported as errors, startup doesn't depend on the mail server, attachments come only from allowed folders, entity IDs are stable, and the integration is maintained.

Context: Home Assistant 2026.8 made SMTP recipients pre-registered entities (home-assistant/core#178359). Email Notifier is one of the integrations people use to email any address instead.

Test plan

  • New tests: Email Notifier connection reused when there's no core SMTP setup, including a relay with no login; core SMTP preferred when both exist
  • Full suite: 2940 passed, 97.6% coverage
  • ruff, mypy, ty, codespell, bandit (via prek run)
  • properdocs build gives no new warnings for the changed pages

🤖 Generated with Claude Code

When Home Assistant's SMTP integration isn't set up, the email transport
takes its direct SMTP connection from the custom email_notifier
integration (microteq/email_notifier or the Wheemer fork), whose config
entry uses the same keys. Core SMTP is still preferred when both exist.

Docs list the Wheemer fork, and the email transport page gains a
checklist of what to look for in an email integration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jeyrb and others added 2 commits November 25, 2026 13:48
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jeyrb
jeyrb merged commit 25fd86b into main Nov 25, 2026
15 of 16 checks passed
@jeyrb
jeyrb deleted the email-notifier-connection-reuse branch November 25, 2026 13:49
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.

1 participant