system email
-
I found that the system email sent out shows the hosting information as the sender name. Can you please make it shows the sender name as set at admin panel instead of the hosting information?
The reason for the error is you are sending the mail with the php mailer, in that you have to authenticate the mail address credentials. For eg:
//Create a new PHPMailer instance
$mail = new PHPMailer;
//Tell PHPMailer to use SMTP
$mail->isSMTP();
//Enable SMTP debugging
// 0 = off (for production use)
// 1 = client messages
// 2 = client and server messages
$mail->SMTPDebug = 2;
//Set the hostname of the mail server
$mail->Host = ‘mail.example.com’;
//Set the SMTP port number – likely to be 25, 465 or 587
$mail->Port = 25;
//Whether to use SMTP authentication
$mail->SMTPAuth = true;
//Username to use for SMTP authentication
$mail->Username = ‘[email protected]’; >>>>>>>>>>>>PLEASE LOOK INTO THIS
//Password to use for SMTP authentication
$mail->Password = ‘yourpassword’; .>>>>>>>>>>>>>>>>>>>>>>.
//Set who the message is to be sent from
$mail->setFrom(‘[email protected]’, ‘First Last’);
//Set an alternative reply-to address
$mail->addReplyTo(‘[email protected]’, ‘First Last’);
//Set who the message is to be sent to
$mail->addAddress(‘[email protected]’, ‘John Doe’);
//Set the subject line
$mail->Subject = ‘PHPMailer SMTP test’;if you are not validate, the mail will send from @hostnameof server
So please update the script accordingto it. Thanks.
- The topic ‘system email’ is closed to new replies.