Skip to content

fix: use EMAIL_FROM as primary sender address instead of EMAIL_SMTP_USER#4

Open
Zielgestalt wants to merge 1 commit into
carwei:mainfrom
Zielgestalt:fix/use-email-from-env
Open

fix: use EMAIL_FROM as primary sender address instead of EMAIL_SMTP_USER#4
Zielgestalt wants to merge 1 commit into
carwei:mainfrom
Zielgestalt:fix/use-email-from-env

Conversation

@Zielgestalt

Copy link
Copy Markdown

The fromEmail config currently defaults to EMAIL_SMTP_USER, which is the SMTP login credential - not necessarily a valid sender address.

With some email services (e.g. Brevo), the SMTP username is completely different from the actual sender address (e.g. no-reply@example.com).

This change adds EMAIL_FROM as the first option in the fallback chain:

EMAIL_FROM → EMAIL_SMTP_USER → default

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