Closed hafizewp22 closed 4 months ago
As the docs say, gmail doesn't let you forge from addresses. If you use anything other than your account address or a predefined alias, the from address will just be ignored. The right way to handle this is shown in the contact form example.
Please check these things before submitting your issue:
SMTPDebug = 2
setphpmailer
, but search first!Problem description
The expected working of function setFrom is set a header indicate the from field. But in the received mail, it shows the from address as the authenticated gmail address.
Code to reproduce
Debug output