2007-03-21, 03:33 PM
my forum does not send mails on registration. funny but it can send mass mails but not normal mails.the mass mails come to junk box. send email verification and send random password, both of them cant sent mails. i tried every way. i followed all old posts about this problem. i changed my host nothing changed. i called my new host and they said that there is support for php mail. i asked how i can prove this, they sent a code wich i ran on my browser and the code really sent a message.
<?php
$to = "[email protected]";
$subject = "Test mail";
$message = "TestTest.";
$from = "[email protected]";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
i get this message after trying to register : ""Warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in ***\inc\functions.php on line 370"" and i dont get any mail. i use mybb 1.2.3. i istalled it 4 times. my host uses windows servers.
what else can i do to get it work ??? it would be very nice when somebody could help.
<?php
$to = "[email protected]";
$subject = "Test mail";
$message = "TestTest.";
$from = "[email protected]";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
i get this message after trying to register : ""Warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in ***\inc\functions.php on line 370"" and i dont get any mail. i use mybb 1.2.3. i istalled it 4 times. my host uses windows servers.
what else can i do to get it work ??? it would be very nice when somebody could help.