General > Support

failing leaving message when op is offline

<< < (2/2)

Inspirer:
Please, share the solution with us :)
Maybe we will include it as an option into the next release.

agentili:
oka but I am very PhpSTUPID....so i will show paste what I think he did...dont ask me nothing I have clue...

require_once('class.phpmailer.php');


$mail = new PHPMailer();

$mail->IsSMTP(); // send via SMTP
$mail->isHTML(true);
//$mail->SMTPDebug = 2;
$mail->Host = "smtp.ursite.com.br"; // SMTP servers
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "info@ursite.com.br";
$mail->Password = "1234";

$mail->From = "info@ursite.com.br";
$mail->FromName = "Customer Service";
$mail->AddReplyTo ("info@ursite.com.br");
$mail->AddAddress("info@ursite.com.br");

$mail->Subject = "Contact from Website";
$mail->Body = wordwrap(myiconv($webim_encoding, $mail_encoding, $body),70);

$mail->Send();
//  echo "Message Sent OK</p>\n";
   
/*   mail($toaddr, $real_subject, wordwrap(myiconv($webim_encoding, $mail_encoding, $body),70), $headers);*/

   
}

He added this class.phpmailer.php file...and some other 2 files I cant find..he told me they are library.
This help?if this help maybe you should add a "check button" stmp authentification in the program and 3 field: smtp, user, password

agentili:
all of that he added it under:
function webim_mail($toaddr, $reply_to, $subject, $body) {
   global $webim_encoding, $webim_mailbox, $mail_encoding;
   
   $headers = "From: $webim_mailbox\r\n"
      ."Reply-To: ".myiconv($webim_encoding, $mail_encoding, $reply_to)."\r\n"
      ."Content-Type: text/plain; charset=$mail_encoding\r\n"
      .'X-Mailer: PHP/'.phpversion();

   $real_subject = "=?".$mail_encoding."?B?".base64_encode(myiconv($webim_encoding,$mail_encoding,$subject))."?=";

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

HERE GOES WHAT HE ADDED

armychina:
is there a patch for openwebim 1.6.1?

my hosting server need to config smtp server and account to send offline mail message.

Navigation

[0] Message Index

[*] Previous page

Go to full version