Mibew Messenger Community

General => Support => Topic started by: orvar on March 09, 2009, 11:07:36 PM

Title: SMTP Error with leave message form (mail form)!
Post by: orvar on March 09, 2009, 11:07:36 PM
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
Title: Re: SMTP Error with leave message form (mail form)!
Post by: orvar on March 10, 2009, 06:03:43 PM
In addition, I made a blank php and tried this script on the server and it worked with out any problems..

Code: [Select]

<?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());
?>



Still need help fixing this error.. any suggestions?
Title: Re: SMTP Error with leave message form (mail form)!
Post by: Inspirer on March 12, 2009, 01:22:45 AM
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.
Title: Re: SMTP Error with leave message form (mail form)!
Post by: orvar on March 12, 2009, 07:24:11 PM
Thanks for the reply, this worked of course ;)