PHP mail function (2)

血红的双手。 提交于 2020-04-11 11:48:45

问题


Hi I am using php mail function to send mails from my contact section. But the mails are not geting me. If i use gmail id its working but if I use any other email ids like hr@sbnphpjobs.com not geting.


回答1:


It's better to use PHPMailer or Swift Mailer in combination with a smtp server (e.g. gmail). Mail send from php (mail()) is often seen as spam by a lot of spamfilters...




回答2:


Your smtp server might only send email to a white list of domain name. I had the same issue with a customer smtp. We bought another solution to solve it.




回答3:


Did you get a chance to check mail logs? There can be a hint to why mails are not going through. If you are running your own server, then a dedicated IP will make sure that you are not having an ip that is blocked by anti spam databases.



来源:https://stackoverflow.com/questions/4553765/php-mail-function-2

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!