-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug]: Self-host setup, EMAIL_FROM from env file is not used #3123
Comments
I think I might have a lead:
|
You are correct, if you go into the file inside the container:
and hard code your EMAIL_FROM like this msg = EmailMultiAlternatives(
subject=subject,
body=text_content,
from_email="[email protected]",
to=[email],
connection=connection,
)
msg.attach_alternative(html_content, "text/html")
msg.send()
I works!!! |
Thanks for flagging this we will push a patch soon. |
\o/ Thanks for the hint, and I'm happy to see I spotted an actual issue, helping you guys to make a better product. Congrats again for this excellent project 👍 |
I followed @Heucles instructions, and I confirm it worked (as a quick'n'dirty workaround) |
@olivierlambert, this issue has been fixed on our latest release, |
I can confirm it's fixed! Thank you very much. |
Is there an existing issue for this?
Current behavior
Editing the
.env
file to put:Then restarting/stopping & starting or even full reboot: my message is always rejected because the "from" is always
[email protected]
regardless the content ofEMAIL_FROM
in my.env
file.However, the rest is correctly taken into account, because it goes to the right SMTP server via user/password, TLS and such. Only the
EMAIL_FROM
is ignored.Steps to reproduce
EMAIL_FROM
EMAIL_FROM
Browser
Mozilla Firefox
Version
Self-hosted
The text was updated successfully, but these errors were encountered: