anon
anon

Reputation:

Mail() doesn't set From header with postfix

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

Answers (1)

dynamic
dynamic

Reputation: 48091

Use -f [email protected] to the last param of mail() and it will work.

Upvotes: 1

Related Questions