• I stopped receiving email from my WordPress site . I have tried with wp-smtp and postman plugins for all i`m able get the test messages from the plugins but not the real messages from contact form . Hence i opened class added two lines of code in the

    function mailPassthru()
    echo mail(‘xxxxxxxx@gmail.com’, $subject,'<b>hi</b>’,$header);
    echo mail(‘xxxxxxxx@gmail.com’, $subject,$body,$header);

    both returns 1 . but i am able to receive mail only from first function not from second function means i can get only hi as content not the WordPress content .

    Could anybody help on this??

Viewing 1 replies (of 1 total)
  • Neither wp-smtp nor Postman use the PHP mail function.

    As for mail function failing, you can’t send gmail without using authentication to the server smtp.gmail.com, which obviously the mail function does not do.

Viewing 1 replies (of 1 total)

The topic ‘email not receiving’ is closed to new replies.