SMTP server response: 503 5.0.0 Need RCPT (recipient)

Is message board greying out your hair (at least what's left of it)? Let us help you here
Locked
gbene
Posts: 5
Joined: Fri Jun 20, 2008 11:18 pm

SMTP server response: 503 5.0.0 Need RCPT (recipient)

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Do any other PHP scripts that send mail work on your server?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
gbene
Posts: 5
Joined: Fri Jun 20, 2008 11:18 pm

Post 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
Locked