Currently the default site email address only allows for the email address without a display name (RFC 2822 ABNF "display-name"). Besides giving an unattractive first impression on initial site registration email, it is known to result in increased spam detection scoring.
The default email address is required for initial site configuration and is stored in the Drupal variable site_mail.
The attached patch is for 7.0-alpha5 and adds a new optional site configuration variable, site_mail_display_name. If the default site_mail variable is used for an outgoing email message, site_mail_display_name is inserted into the From header.
This patch to also adds the new variable to the site installation and site settings forms.
See also these related issues, currently assigned to Drupal 8 and Drupal 6:
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | site-mail-display-name-d7a5.patch | 3.12 KB | Daniel Norton |
| #3 | site-mail-display-name-d7a5-v2.patch | 3.23 KB | Daniel Norton |
Comments
Comment #1
Daniel Norton commented[Patch is already obsolete — DN]
Comment #2
Daniel Norton commentedComment #3
Daniel Norton commentedProperly sets default value and fixes < in description in admin site settings form.
Comment #4
damien tournoud commentedThis looks like a duplicate of #209672: Use site name in From: header for system e-mails.
Comment #5
Daniel Norton commentedNot a dup of #209672: Use site name in From: header for system e-mails.
This item is 7.x, that one is 8.x.
That one aims at a more complex solution of using the site name, this provides the easier solution of an additional field.
Comment #6
damien tournoud commentedPlease do not open duplicate issues for the same feature in different versions of core.
Comment #7
Mansie commentedI applied this patch on a fresh D7 installation and it works. Thanks to Daniel for providing this patch.
Happy I don't have to wait until D8 to get this resolved.