In php Mail Function, when we send headers, can we set the “From Mail” to be a Word like “Company Newsletter” Only, not in an email form as newsletter@company.com ??
how can we do that ? because writing it is (not in an email form) prevents the email from being sent.
here’s my code:
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=windows-1256\r\n";
i have tried what tim suggested , having
$row['SenderMail'] = "Company Newsletter <Newsletter@ids.com.lb>";
$headers .= "From:".$row['SenderMail']."\r\n";
$subject=str_replace('%26','&',$row['Subject']);
@mail($row['DestinationMail'], $subject, $row['Body'],$headers);
But still email isn’t being sent.any help ?
Please use the following :
That should do the trick !