Author Topic: SMTP Error with leave message form (mail form)!  (Read 10549 times)

0 Members and 1 Guest are viewing this topic.

orvar

  • Jr. Member
  • **
  • Posts: 4
SMTP Error with leave message form (mail form)!
« 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

orvar

  • Jr. Member
  • **
  • Posts: 4
Re: SMTP Error with leave message form (mail form)!
« Reply #1 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?

Inspirer

  • Mibew Project founder
  • Native
  • *****
  • Posts: 262
    • Mibew Messenger
Re: SMTP Error with leave message form (mail form)!
« Reply #2 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.
« Last Edit: March 12, 2009, 01:43:05 AM by inspirer »

orvar

  • Jr. Member
  • **
  • Posts: 4
Re: SMTP Error with leave message form (mail form)!
« Reply #3 on: March 12, 2009, 07:24:11 PM »
Thanks for the reply, this worked of course ;)