php mail() -> junk, sometimes not even received?

前端 未结 2 1852
臣服心动
臣服心动 2021-01-13 23:59

I am using phps mail() function to send confirmation e-mails.

The e-mails get received on gmail and others as far as I\'m aware, the only real problems I\'ve had is

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-14 01:04

    php mail() function is not a perfect thing to use. Many a times, google/yahoo or some other email providers block the addresses of your hosting, as a result the mail never reached in the destination (so, not in the junk box also). Sometimes, you might face that you sent to two email addresses in different domain (say, gmail and hotmail), one got delivered, other not. So mail() function, though is very simple and easy to use, not suitable always if you want reliable email delivery.

    To me, best thing is to use smtp server of your hosting or any gmail address if your hosting support FSOCKOPEN.

提交回复
热议问题