Jump to content

Wordpress PHP mail() function not working


Cali_K1d

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/276113-wordpress-php-mail-function-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.