Page 1 of 1

SMTP server response: 503 5.0.0 Need RCPT (recipient)

Posted: Fri Dec 19, 2008 5:38 pm
by gbene
Yesterday I downloaded and installed 'MBoard' ('Messaage Board') from PHPJunkyard.com and installed it on a Windows XP Home Webserver.
The downloading and the installing went all well as far as I can see.
But one error is showing up - when someone tries to post a message:

Warning: mail() [function.mail]: SMTP server response: 503 5.0.0 Need RCPT (recipient) in C:\wamp\www\sieino.mine.nu\oppslag\mboard.php on line 472Warning: mail() [function.mail]: SMTP server response: 503 5.0.0 Need RCPT (recipient) in C:\wamp\www\................\mboard.php on line 472

I've been searching "all over" to find a solution, but haven't found anything helping me '!out'.

Anyone reading this who can help. . . .? :?:

Eno

Posted: Fri Dec 19, 2008 7:55 pm
by Klemen
Do any other PHP scripts that send mail work on your server?

Posted: Fri Dec 19, 2008 11:58 pm
by Henrie
I did not check in MBoard, but in Gbook i had a similar problem.

The original code in Gbook was:
mail("$settings[admin_email]",$lang['t41'],$message);
I had to change it to
mail("$settings[admin_email]",$lang['t41'],$message,"From: $name <$email>\r\n");
to make it work on my windows computer.

I now looked in MBoard it uses the following code
mail($settings['admin_email'],'New forum post',$message);
Try adding the from part as i showed in my example for GBook.
I did not test, but the following might work:
mail($settings['admin_email'],'New forum post',$message,"From: $name <$email>\r\n");

Please let us know if it works or not, as others might have had the same problem as you.

Greetings,
Henrie

Posted: Sat Dec 20, 2008 11:50 am
by Klemen
If what Henrie suggested works you can set the default from address in php.ini and it should make all your scripts work.

Posted: Sat Dec 20, 2008 12:54 pm
by gbene
No problem in my Gbook,
and now is my Mboard working as well:

The following mail code:
mail($settings['admin email'],'New forum post',$message);
changed to:
mail($settings[admin_email],'New forum post',$message);


Thanks for your help!
You can have a look at the result here. . . . I have just put it on the 'air'!

Eno