Reputation:
I am trying to send email with mail()
it works but even if I set From: email <name>
it is sent with the original email of my server.
Is there anyway to solve this? I have debian with postfix
Upvotes: 1
Views: 820
Reputation: 48091
Use -f [email protected]
to the last param of mail()
and it will work.
Upvotes: 1