General > Support

SMTP Error with leave message form (mail form)!

(1/1)

orvar:
Hi,
I have been testing Web Messenger and am very happy with it, everything works except one thing.. I was trying out the Agent offline form, Leave a message when I got this error;

Warning: mail() [function.mail]: SMTP server response: 451 See http://pobox.com/~djb/docs/smtplf.html. in D:\Hosting\4017708\html\webim\libs\common.php on line 497

The Web Messenger is setup on my account with godaddy.com.

Please help my solve this..
Thanks,
Örvar

orvar:
In addition, I made a blank php and tried this script on the server and it worked with out any problems..


--- Code: ---
<?php 
   mail("youremail@gmail.com", "Mail function works", "Message Body", "From: webim@yourdomain.com\r\nContent-Type: text/plain; charset=utf-8\r\nX-Mailer: PHP/".phpversion());
?>


--- End code ---

Still need help fixing this error.. any suggestions?

Inspirer:
Insert:

$body = preg_replace("/\n/","\r\n", $body);

into webim/libs/common.php, function webim_mail(...), before:

mail($toaddr, $real_subject, wordwrap(myiconv($webim_encoding, $mail_encoding, $body),70), $headers);

Hope it will help :)

Evgeny.

orvar:
Thanks for the reply, this worked of course ;)

Navigation

[0] Message Index

Go to full version