This change enables custom LocalName entries to be specified for sending emails.
The motive is that smtp-relay.gmail.com heavily throttles the number of emails that are accepted with a LocalName of "localhost". To get past the ehlo step in this case the connection must specify another LocalName.
The smtp library has "localhost" hardcoded, so this change also changes the Send(...) implementation to inline the smtp.SendMail(...) call, modifying the Hello step.
This change enables custom LocalName entries to be specified for sending emails.
The motive is that smtp-relay.gmail.com heavily throttles the number of emails that are accepted with a LocalName of "localhost". To get past the ehlo step in this case the connection must specify another LocalName.
The smtp library has "localhost" hardcoded, so this change also changes the Send(...) implementation to inline the smtp.SendMail(...) call, modifying the Hello step.