Support » Localhost Installs » Activation email not sent to users (on windows OS)

  • 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.
    I’ve already experience this problem in the past, i had patch it to correctly send out email with a raw code, until wp was not updated fixing the problem, but unfortunately i can’t find out right now the old topic here on forums … i had open a ticket also about (that was a duplicated) and it was resolved, but now have come out again.
    Anybody experience the same?

    p.s this happen in window OS as mentioned, not lnx.

Viewing 1 replies (of 1 total)
  • Thread Starter axew3

    (@axewww)

    file: wp-includes/class-phpmailer.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);
            } else {
                $result = @mail($to, $subject, $body, $header, $params);
            }
            return $result;

    to get it fully working at moment for my test i’ve change it into:

            //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;

    now all work on test, but of course, here so the wordpress header is sent out by default as header, so it appear as sender wordpress on arriving emails. This is the same problem of last time.
    This is not the correct fix, this is just an on fly how to fix to follow test with wp in this scenario …. opening a ticket about maybe.

    • This reply was modified 4 years, 6 months ago by axew3.
Viewing 1 replies (of 1 total)
  • The topic ‘Activation email not sent to users (on windows OS)’ is closed to new replies.