-1

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('manojurfriend@gmail.com', $subject,'<b>hi</b>',$header);
     echo mail('manojurfriend@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??

Altaf Hussain
  • 5,166
  • 4
  • 30
  • 47

1 Answers1

0

you can use this code

function mailPassthru()
{
mail('manojurfriend@gmail.com', $subject,'<b>hi</b>',$header);
}
Anand Parmar
  • 168
  • 3
  • 13
  • syntax i have written is what you mentioned but mail with content hi is receiving but mail with actual content in $ body is received – manojurfriend Sep 03 '15 at 07:30
  • if you use html content than please use this header-- $headers = 'MIME-Version: 1.0' . "\r\n".'Content-type: text/html; charset=iso-8859-1' . "\r\n"; – Anand Parmar Sep 03 '15 at 07:35
  • No luck i used your the headers but still only hi is receiving not the actual content mail – manojurfriend Sep 03 '15 at 07:56
  • Please provide some details too – Altaf Hussain Sep 03 '15 at 08:09
  • $body=mysql_real_escape_string($body); use this code before mail function – Anand Parmar Sep 03 '15 at 08:11
  • no it also dint work – manojurfriend Sep 03 '15 at 10:20
  • @altafhussain my site is a wordpress site in class-phpmailer.php i puit the following code echo mail('manojurfriend@gmail.com', $subject,'hi',$header); echo mail('manojurfriend@gmail.com', $subject,$body,$header); both themail function executed i receive only one mail which content is hi where in case i dint receive the actual content stored in $body – manojurfriend Sep 03 '15 at 10:21