开发者

Mail() doesn't set From header with postfix

开发者 https://www.devze.com 2023-02-23 04:40 出处:网络
I am trying to send email w开发者_运维知识库ith mail() it works but even if I set From: email <name> it is sent with the original email of my server.

I am trying to send email w开发者_运维知识库ith 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


Use -f mail@mail.com to the last param of mail() and it will work.

0

精彩评论

暂无评论...
验证码 换一张
取 消