Issue
With php mail() I can write
mail('to@example.com','subject!','body','From: from@example.com','-f from@example.com');
But how can I do the same with phpmailer ?
Solution
the relevant lines:
$mail->SetFrom('name@yourdomain.com', 'First Last');
$mail->AddReplyTo('name@yourdomain.com', 'First Last');
As Hannes Morgenstern correctly suggested, the answer is:
$pMail->Sender='admin@yourdomain.com';
$pMail->SetFrom('name@yourdomain.com', 'First Last', FALSE);
Answered By - Theolodis Answer Checked By - Katrina (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.