[wp-trac] [WordPress Trac] #40259: The envelope-from address is being explicitly unset/set to nothing (or phpmailer is too far out of date)

WordPress Trac noreply at wordpress.org
Sat Mar 25 12:13:26 UTC 2017


#40259: The envelope-from address is being explicitly unset/set to nothing (or
phpmailer is too far out of date)
--------------------------+------------------------
 Reporter:  lilmike       |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Mail          |     Version:  3.8
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |     Focuses:
--------------------------+------------------------
Changes (by swissspidy):

 * status:  new => closed
 * version:  4.6 => 3.8
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 Hey there,

 Welcome to Trac!

 When `$from_email` is not set in `wp_mail()`, WordPress uses
 `$_SERVER['SERVER_NAME']` to and ends up using `wordpress@<servername>`
 when calling `PHPMailer::setFrom()`, which in turn sets the `Sender`
 property. This property is used to set the SMTP envelope.

 To me that sounds like the problem you're experiencing, which there
 luckily is already a ticket for, see #25239.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40259#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list