-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setFrom didn't work as expected #3016
Comments
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: