Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
smtp: Use proper name when saying What's Up (HELO/EHLO)
This commit addresses an issue where outgoing email can get rejected when the target mail server is tight-assed - requiring a valid host when saying helo/ehlo. We were setting the name to null which resulted in localhost being used as the name. Now we're asking the OS to give us the proper hostname of the server - hopefully the server admin has the correct hostname and reverse-lookup setup correctly for better deliverability.
- Loading branch information
Showing
1 changed file
with
35 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters