Bounce Email handling with PHP?

后端 未结 14 1428
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-28 04:30

Here is my scenario:

I have 2 email accounts: admin@domain.com and bounce@domain.com.

I want to send email to all my users with admin@domain.com but then \"r

相关标签:
14条回答
  • 2020-11-28 05:33

    The best scenario is be able to classify the type of bounce: soft, hard...

    what we use is BounceStudio. You need to compile it and add the php libraries... not hard at all. You have the free and paid version of that product

    once we detect the kind of bounce we use PEAR::MAIL::MIME to search for custom headers that we added previously to the email, lets say:

    X-user-id: XXXXX
    X-campaign-id: YYYYYY 
    X-recipient-id: SSSSSSSSS
    

    in this way we can know the real recipient that we sent the email to.

    hope this help you! so you can help me to get to the 500 points :P

    0 讨论(0)
  • 2020-11-28 05:34

    I was searching for the answer to the same question. There are more parts of the question, and more options.

    For handling the bounced e-mail, I found a PHP class, purely in PHP, no compile or additional software installation needed if you have a PHP powered site. It is very easy to use.

    If you are using cPanel, or InterWorx/SiteWorx, you can configure some of the addresses to handle the received e-mails with a script, for example a PHP script, so you can write your own handling with the aid of the mentioned class. Or of course still you can create ordinary e-mail accounts and retrieve the mails via POP3 or IMAP, and then interpret them. I think the first one is better, because it's direct, you don't have to use additional channels, like IMAP. Of course if you can't configure your mail server, or don't know how to do it, then the former is better for you.

    Good luck! :)

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