SendEmail issue #2536
HolgerHuckfeldt
started this conversation in
Show and tell
SendEmail issue
#2536
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The current (2.3.0) ist missing the From-Header, so i suggest to add
message.From.Add(MailboxAddress.Parse(from));
to the action.
I changed the SendEmail-activity to deal with multiple server configurations. I need this because i have clients with different smtp-servers on my system.
For this, I added a
public string ServerConfig { get; set; }
as a ActivityInput. When set, I load the config-section list this:
_configuration.GetSection($"Elsa:{ServerConfig}").Bind(localOptions);
In case anyone is interested, I am attaching the file.
Just add a new ConfigSection like the "Smtp"-one, name it like you want, maybe "SmtpGoogle". In your SendMail-activity, set ServerConfig to "SmtpGoogle" and this one will be used. If you leave it empty, the default "Smtp" will be used.
SendEMail.zip
Beta Was this translation helpful? Give feedback.
All reactions