Jump to content


Photo

Wordpress PHP mail() function not working

contact form php mail() wordpress

  • Please log in to reply
1 reply to this topic

#1 Cali_K1d

Cali_K1d

    Newbie

  • New Members
  • Pip
  • 2 posts

Posted 25 March 2013 - 12:36 AM

Hi, I'm having a problem ever since I switched hosting servers.

 

My contact page form and other email forms aren't working on the server.

 

This is what suport emailed me:

Mar 24 19:59:26 hercules suhosin[30188]: ALERT - mail() - To: headers
aren't allowed in the headers parameter. (attacker '99.108.165.151', file
> '/home/manilade/public_html/wp-includes/class-phpmailer.php', line 769)
Mar 24 20:00:19 hercules suhosin[5929]: ALERT - mail() - To: headers
aren't allowed in the headers parameter. (attacker '99.108.165.151', file
 '/home/manilade/public_html/wp-includes/class-phpmailer.php', line 769)

 

When I deleted 769, I got 2 errors.

1. Undefined variable line 771: $isSent = ($rt == 1) ? 1 : 0;

2. Undefined variable line 778: if(!$rt) {

 

Does anyone know how to fix this? thanks.



#2 Cali_K1d

Cali_K1d

    Newbie

  • New Members
  • Pip
  • 2 posts

Posted 25 March 2013 - 03:16 PM

The problem was with the server security.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com