Custom From Name & Email For Some SMTP mails
-
Hi,
I have used this plugin and it is working great, my site has an option where logged in user can send email to ADMIN but in the mail FROM name & Email need to have their own but this plugin overwrites.
I have used this:
$headers1[] = ‘Content-Type: text/html; charset=UTF-8’;
$headers1[] = ‘From: Me Myself <[email protected]>’;
$headers1[] = ‘Cc: John Q Codex <[email protected]>’;
$headers1[] = ‘Cc: [email protected]’;
$mail = wp_mail( $to, $subject, $message, $headers1);but still it send with the name & email that the plugin page have. Also I can not make that empty otherwise I need that in all other emails.
Please suggest.
Thanks Sanny
- The topic ‘Custom From Name & Email For Some SMTP mails’ is closed to new replies.