php - Any way to direct 'returned' emails for various errors? -


we manage website gives agents ability enroll members across country. @ times, member or agent enter bad email address during enrollment process , important pdf'd information cannot delivered member.

similarly, agent may try , recruit sub-agent , have same issue.

is there anyway automatically redirect returned emails (delivery status notification (failure)) responsible party instead of our primary email?

i.e. agent 1 recruits agent 2. email attempted send recruit@domain.com address agent 2 invalid. system automatically recognizes message type, formats , sends agent 1 note saying email he/she entered bad.

note: using google apps standard of our mail delivery while our platform built on php , mysql.

make special email example "recruit-system@domain.com" , send every mail account. after sending recruiting mali via account, make shure save destination e-mail adress in database connected according agent sent mail can determine sent email afterwards. make shure account being used app. make cronjob php script connects via smtp account , let check out if there mail returned. if there email mail came , in database , send notification according agent. that's how it.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -