Skip to content
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

Add send_from field to notify.mail config #195

Merged
merged 1 commit into from
Jan 9, 2023

Conversation

sjoegren
Copy link
Contributor

@sjoegren sjoegren commented Jan 9, 2023

Add new configuration field, notify.mail.send_from, that if set, is used as the "From:" e-mail field. If not set, the behaviour remains the same, that smtp_username is used as "From:" too, to be compatible with previous config files.

This solves the email notification issue where gomail fails to send the email because the smtp_username is not an e-mail address, e.g.:

ERRO[0001] Send notification with error:gomail: could not send email
1: gomail: invalid address "username": mail: missing '@' or angle-addr

Add new configuration field, notify.mail.send_from, that if set, is used
as the "From:" e-mail field. If not set, the behaviour remains the same,
that smtp_username is used as "From:" too, to be compatible with
previous config files.

This solves the email notification issue where gomail fails to send the
email because the smtp_username is not an e-mail address, e.g.:

  ERRO[0001] Send notification with error:gomail: could not send email
  1: gomail: invalid address "username": mail: missing '@' or angle-addr
@TimothyYe TimothyYe merged commit b03832c into TimothyYe:master Jan 9, 2023
@TimothyYe
Copy link
Owner

Thanks for your contribution.

@sjoegren sjoegren deleted the smtp_send_from branch January 9, 2023 15:15
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.

2 participants