jeudi 9 février 2017

How to make PHPMailer ignoring the 'from' email address and display only the name?

Vote count: 0

I'm using PHPMailer with the same SMTP configuration as my outlook.

Let's say that my email is "b@example.com" and name is "Bob, b". When I send a mail from my outlook to "Alice" at "a@example.com". In her outlook client she will only see "Bob, b" and she will not see my email address in the header.

When sending the same mail from "PHPMailer" Alice will see in her outlook "Bob, b {b@example.com}"

When I tried to set it without the email:

$mail->setFrom('Bob, b');

The smtp added {root@mysmtpblabla.example.com}

Can PHPMailer handler such a case? sending with name only?

asked 16 secs ago

Let's block ads! (Why?)



How to make PHPMailer ignoring the 'from' email address and display only the name?

Aucun commentaire:

Enregistrer un commentaire