SMF Forum Mail(0 not working in boru

Status
Not open for further replies.

nalapachakamforum85

New Member
Messages
11
Reaction score
0
Points
0
Users can register at my forum because they are not recieving the activation mails sent out by the boru server? Is there any problem at the server?

Iam currently using Simple machines Forum!

Please try registering at my forum and check the activation email is recieving or not?

Link: http://npforum.x10.mx/index.php?action=register

Please help. This is a very serious issue for me!

Thanks in advance!
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
To see what the problem is, please load this script (call it something like mail_test.php), edit the $from and $to values to match your domain and your outside email and then run from the web.

PHP:
<?php


//  TEST OF THE MAIL SYSTEM USING PHP mail()

date_default_timezone_set('America/Los_Angeles');
echo date('l jS \of F Y h:i:s A'); 
echo "\n";

$from = "cPanelUserName@yourwebsite.com";
$to="anEmailaccount@gmail.com"; 


$mailbody="Test message sent (PST): \n" . date('l jS \of F Y h:i:s A');
$subject="Test of PHP mail()" ;

$headers = "Content-type: text/plain; charset=windows-1251 \r\n";
$headers .= "From: $from\r\n";
$headers .= "Reply-To: $from\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "X-Mailer: PHP/" . phpversion();

$resp = mail($to, $subject, $mailbody, $headers);

if( $resp ){
    $outcome = "Mail sent" ;
} else {
    $outcome = "Mail not sent";
}

print "\nThe mail system said: $outcome\n\n" ;
exit();

?>
 
Status
Not open for further replies.
Top