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:

  • #133789: Drupal-generated email can look like spam
  • #209672: Use site name in From: header for system e-mails
  • Comments

    Daniel Norton’s picture

    Priority: Normal » Critical
    StatusFileSize
    new3.12 KB

    [Patch is already obsolete — DN]

    Daniel Norton’s picture

    Priority: Critical » Normal
    Daniel Norton’s picture

    StatusFileSize
    new3.23 KB

    Properly sets default value and fixes < in description in admin site settings form.

    damien tournoud’s picture

    Priority: Critical » Normal
    Status: Active » Closed (duplicate)
    Daniel Norton’s picture

    Status: Closed (duplicate) » Active

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

    damien tournoud’s picture

    Status: Active » Closed (duplicate)

    Please do not open duplicate issues for the same feature in different versions of core.

    Mansie’s picture

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