Is there any way to set the email headers so that the email "From" name is not the same as the email address? Right now, any emails sent show up as alerts@ourdomain.com but we would rather they were something like "Our Domain Alerts " - SMTP authentication module we had been using (were sending emails via google apps) had a field to set this, and if nothing was set it used the site's name.
We decided to switch over to Amazon SES using this module but would still like the emails to appear the same.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | amazon_ses-fix-headers-1133912.patch | 2.08 KB | thebuckst0p |
Comments
Comment #1
geerlingguy commentedSubscribe.
Comment #2
thebuckst0p commentedIt appears SES fully supports the usual "Name
" syntax in the From header, and I'm trying to enforce it with hook_mail_alter, but something in this module (or the SDK library) seems to be blocking that from working.
Comment #3
thebuckst0p commentedThe attached patch allows a message's 'from' key to override the default
$sourceaddress. You can use the standard Name <someone@domain.com> to control the From name as brantwynn requested.I also fixed the handling for Reply-To and Return Path -- it was mixing them up, so whenever a Reply-To was set to a non-verified address, it tried to set an invalid Return-Path and failed to send. Both should be configurable, but separately.
Thanks for the module!
(Note the patch is against my site repository, not the module's contrib repo, so the commit hashes in the header are different, but it should apply the same.)
Comment #4
thebuckst0p commentedComment #5
tkuldeep17 commentedSorry, Now my code base does not support for drupal 6.