Add MAIL_ADDRESS
environment variable
#46
No reviewers
Labels
No labels
bug
dependencies
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: plume/documentation#46
Loading…
Reference in a new issue
No description provided.
Delete branch "plume/documentation:clarify_mail_options"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If
MAIL_ADDRESS
is not set in the environment, the from address is constructed from theMAIL_USER
andMAIL_SERVER
variables.However many providers (e.g. Mailgun) require a full email address to be passed as the username. This results in a from address like
some@emailaccount@mailgun.com
. Sending emails then fails due to Lettre's validity check, and no error is visible.Email error handling can definitely be improved in the codebase too, but as a first step this should help new users avoid the same problem.
Thank you!