[wp-trac] [WordPress Trac] #40394: Activation email not sent to new users on Windows (have come out another time)

WordPress Trac noreply at wordpress.org
Sat Apr 8 08:59:31 UTC 2017


#40394: Activation email not sent to new users on Windows (have come out another
time)
--------------------------+-----------------------------
 Reporter:  axewww        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.7.3
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 https://wordpress.org/support/topic/activation-email-not-sent-to-
 users/#post-9009273
 I experience this into a: windowsOS/php5.6/apache2.4
 when i test an user registration, the email that inform the admin about
 new user is sent out, while the activation email to the user not.
 so to fix it on fly, i've remove (like last time) $header that seem to
 cause a problem:
 {{{#!php
 <?php
         //Can't use additional_parameters in safe_mode, calling mail()
 with null params breaks
         //@link http://php.net/manual/en/function.mail.php
         if (ini_get('safe_mode') or !$this->UseSendmailOptions or
 is_null($params)) {
             //$result = @mail($to, $subject, $body, $header);
             $result = @mail($to, $subject, $body);
         } else {
             $result = @mail($to, $subject, $body, $header, $params);
         }
         return $result;
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40394>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list