Cali_K1d Posted March 25, 2013 Share Posted March 25, 2013 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: headersaren'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: headersaren'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 More sharing options...
Cali_K1d Posted March 25, 2013 Author Share Posted March 25, 2013 The problem was with the server security. Link to comment https://forums.phpfreaks.com/topic/276113-wordpress-php-mail-function-not-working/#findComment-1420985 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.