By penyaskito on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
In the fight against spam more and more ISP's require mail send though the php function to originate from the main domain. The contact form however uses the sender's email as the "From:" address.
This has been changed so that the "From:" header is set to the site-wide email address, and the senders email is set in a "Reply-to:" header.
Drupal 7:
drupal_mail($module, $key, $to, $language, $params = array(), $from = NULL, $send = TRUE)
Drupal 8:
drupal_mail($module, $key, $to, $langcode, $params = array(), $reply = NULL, $send = TRUE)
If you still want to change the "From:" email header, you can do that by implementing hook_mail_alter() in your module.
Impacts:
Site builders, administrators, editors
Module developers