Answer the question
In order to leave comments, you need to log in
Why doesn't PHPmail send FromName?
There is no FromName in the
incoming letter , only email says:
$to = $user->user_email;
$subject = $main_smarty->get_config_vars("PLIGG_PassEmail_Subject");
$body = "html mail";
$headers = 'From: ' . $main_smarty->get_config_vars("PLIGG_PassEmail_From") . "\r\n";
$headers .= "Content-type: text/html; charset=utf-8\r\n";
if(phpnum()>=5)
require("libs/class.phpmailer5.php");
else
require("libs/class.phpmailer4.php");
$mail = new PHPMailer();
$mail->From = $main_smarty->get_config_vars('PLIGG_PassEmail_From');
$mail->FromName = $main_smarty->get_config_vars('PLIGG_PassEmail_Name');
$mail->AddAddress($to);
$mail->AddReplyTo($main_smarty->get_config_vars('PLIGG_PassEmail_From'));
$mail->IsHTML(true);
$mail->Subject = $subject;
$mail->CharSet = 'utf-8';
$mail->MsgHTML( $body );
if (mail($to, $subject, $body, $headers))
Answer the question
In order to leave comments, you need to log in
And where is the $mail variable used when sending?
Need like this:if($mail->send())
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question