duanchen1937 2010-06-04 22:38 采纳率: 0%
浏览 11
已采纳

在邮件中更改它的来源()

I'm sending myself a text message using PHP mail() and it says FRM: username@myftpaddress.com. I'm using number@txt.att.net to send the text message. How can I change that?

  • 写回答

1条回答 默认 最新

  • douwei7471 2010-06-04 22:46
    关注

    You can add additional headers to the mail function, including from:

    $headers  = "From: your@email.com
    ";
    mail($to, $subject, $body, $headers);
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?