Topic: Trouble sending emails (SMTP)

I'm getting an error when I try sending any emails.. can anyone help me with this?

<div id="errorbox">
       <h2>An error was encountered</h2>
       <div>
               Error: <strong>Unable to send e-mail. Please contact the forum administrator with the following error message reported by the SMTP server: "501 <Linda <email@mydomain.com>>: "@" or "." expected after "Linda"
".</strong>
       </div>
</div>

Re: Trouble sending emails (SMTP)

Try this. Open up misc.php and look for:

pun_mail($recipient_email, $mail_subject, $mail_message, $pun_user['username'].' <'.$pun_user['email'].'>');

replace it with:

pun_mail($recipient_email, $mail_subject, $mail_message, '"'.$pun_user['username'].'" <'.$pun_user['email'].'>');

See if that helps.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

3 (edited by imajinx 2005-04-01 18:30)

Re: Trouble sending emails (SMTP)

Thank you! I think that fixed the problem... but now I'm getting another one. I'm pretty sure it has nothing to do with punbb, but maybe someone can help.

Error: Unable to send e-mail. Please contact the forum administrator with the following error message reported by the SMTP server: "550 Administrative prohibition ".

=T

Re: Trouble sending emails (SMTP)

That error is caused by some blocking configuration of the mail server. You will have to ask the server administrator about that.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Trouble sending emails (SMTP)

Here's the full fix in subversion (for the first error).

"Programming is like sex: one mistake and you have to support it for the rest of your life."