What is the best practice to send emails from PHP script?

前端 未结 2 1345
陌清茗
陌清茗 2020-12-10 06:39

I hope this question wont be too specific. But I really need to ask. We all know that we cannot fully prevent our emails to go to spam box right? But I guess we can decrease

相关标签:
2条回答
  • 2020-12-10 07:14

    A hosted service may be a better way to go. They've developed procedures, and relationships with ISPs, that will help get your e-mails delivered and will help you fend off spam complaints.

    I have a mailing list for a blog that I run, and I decided not to send out an e-mail that had an (otherwise legitimate) story that dealt with a pharmacy. I figured almost nobody would get the e-mail, and that I'd get a lot of spam complaints, just because of the word "pharmacy."

    Provide useful information in your e-mails first and foremost. Use double opt-in procedures. That will reduce the probability of your e-mail being sent to spam.

    0 讨论(0)
  • 2020-12-10 07:17

    I am using Swiftmailer.

    • easy to integrate
    • easy to use
    • has a cool documentation

    If you read the docs and follow guidelines, you will have much less mails landing in the spam folder. I have used it with great success. It also has some useful plugins.

    0 讨论(0)
提交回复
热议问题