Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mailer: Change FromAddress to EmailAddress object + Spoofing
This commit refactors how FROM address is set and used within the Mailer. It's now set as EmailAddress object - making it easy to get Email and Name separately. We're also removing Spoofing Check when determining possible SMTP accounts to use for outgoing emails. It's now checked while attempting to send a Message. If the account in question doesn't allow Spoofing then the FROM header is reset to the accounts email address.
- Loading branch information
Showing
1 changed file
with
53 additions
and
30 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