[wp-trac] [WordPress Trac] #18792: Wrong FROM email when using wp_mail and built in mail() function

WordPress Trac noreply at wordpress.org
Mon Oct 21 23:04:47 UTC 2013


#18792: Wrong FROM email when using wp_mail and built in mail() function
-------------------------------------------------+-------------------------
 Reporter:  pigster                              |       Owner:  westi
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  Awaiting
Component:  External Libraries                   |  Review
 Severity:  major                                |     Version:  3.2.1
 Keywords:  has-patch needs-testing needs-unit-  |  Resolution:
  tests 2nd-opinion                              |
-------------------------------------------------+-------------------------

Comment (by MaximumResults):

 Replying to [comment:15 atimmer]:
 > Maybe we can set Sender only when the user passes a custom mail address.
 When a user passes a mail address we then assume their intend is to make
 sure te receiver receives the message from that mail address.
 >
 > We should add the check after the filter. If the $from_email doesn't
 contain Wordpress@ we set the Sender.

 So, you're saying, if I have "allow anyone to register" turned on, and my
 site is hosted on a cPanel hosting service, WordPress should send the
 cPanel hosting login details (less password) to anyone who registers on
 the site?   That doesn't sound like a good idea at all. The "WordPress@"
 emails are the ones that most need to have the Sender set, and that needs
 to apply to the "Envelope-to:" header, the "Sender:"/"X-Sender:" header
 and especially for the "-f{user}@{domain}" string passed to the mail() PHP
 function.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/18792#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list