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.

Comments

geerlingguy’s picture

Subscribe.

thebuckst0p’s picture

It 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.

thebuckst0p’s picture

StatusFileSize
new2.08 KB

The attached patch allows a message's 'from' key to override the default $source address. 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.)

thebuckst0p’s picture

Status: Active » Patch (to be ported)
tkuldeep17’s picture

Issue summary: View changes
Status: Patch (to be ported) » Closed (won't fix)

Sorry, Now my code base does not support for drupal 6.