Skip to content

Add EMAIL_SEND_FROM configuration option#112

Open
filippo-orru wants to merge 2 commits intolawndoc:mainfrom
filippo-orru:email_send_from
Open

Add EMAIL_SEND_FROM configuration option#112
filippo-orru wants to merge 2 commits intolawndoc:mainfrom
filippo-orru:email_send_from

Conversation

@filippo-orru
Copy link
Copy Markdown

My email service provides an SMTP endpoint that requires a randomly generated username and password. The username is not a valid email address, so in the current implementation of stack-back, sending alerts fails:

ERROR: (501, b'Syntax error in command or arguments:  --> 1:22\n|\n1 | mail from:<myRandomUsernameXyz>\n|                      ^---\n|\n= expected atext', 'myRandomUsernameXyz')

The fix is simple: add a new configuration parameter to set the SMTP from address. If not provided, it falls back to EMAIL_HOST_USER to maintain backwards compatibility.

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