Bounce Email handling with PHP?

后端 未结 14 1512
爱一瞬间的悲伤
爱一瞬间的悲伤 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:32

    Let the emails bounce to an address that is really an emailadress (with login details etc.).

    Make a php script which runs ever x minutes (for example with a cron job). This php script must do the following. - Retrieve all email from the box (use for example Zend Mail) - Check for the error in the message (e.g. by searching it with regular expressions) - Do what ever is necessary.

    If you want to know specifically who has bounced back you can use user specific bounce addresses. (See for example this site)

提交回复
热议问题