Email: Set From header to bounce@ to reduce confusion

Sometimes we do want folks to reply to messages, and the `donotreply` address contradicts that. `bounce@` has a similar meaning, but is less known. `bounce@` has the advantage of matching the `Return-Path`, which may reduce the chance of a message being flagged as spam for forging the `From` header.

See https://github.com/WordPress/five-for-the-future/pull/206#discussion_r938418815
This commit is contained in:
Ian Dunn 2022-08-05 12:02:08 -07:00
parent a8ce296de5
commit 4dc03ada83

View file

@ -25,7 +25,7 @@ defined( 'WPINC' ) || die();
*/
function send_email( $to, $subject, $message, $pledge_id = false ) {
$headers = array(
'From: WordPress - Five for the Future <donotreply@wordpress.org>',
'From: WordPress - Five for the Future <bounce@wordpress.org>',
'Reply-To: getinvolved@wordpress.org',
);