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 “reply to” bounce@domain.com (until here, my PHP script can handle it).
When, the email can’t be sent, it’s sent to bounce@domain.com, the error message could be 553 (non existent email …) etc.
My question is: How do I direct all those bounce emails (couldn’t-sent emails) to bounce@domain.com through a handling script to check for the bounce error codes?
What programming language should I be using for the “handling script”?
What would the “handling script” look like? Can you give a sample?
in other words:
What are the procedures I should follow to handle the bounce email ?