php mail() from godaddy server

前端 未结 3 759
悲&欢浪女
悲&欢浪女 2021-01-19 02:59

I\'m using godaddy for hosting my site and using default godaddy mail service. Now i want to sent email using php mail function to other email address from my 1 of my 15 em

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-19 03:54

    The PHP mail function uses the mailserver configured for that webhost. You can't change that. Since godaddy controls the mailserver they control what headers it sends. You could try inserting a custom From header but I doubt that will work. It will either get modified, flagged as spam, or rejected.

    If you have 15 accounts at godaddy, perhaps it's time to look for a more serious hosting solution?

提交回复
热议问题