kevin7 Posted June 18, 2008 Share Posted June 18, 2008 Hi, I have done some research on looking for a solution to detect bounced email. first of all, safe_mode for php must be OFF in order to use returnPath in mail() function. And this would be the first obstacle since most of the web servers have it ON. Anyway, my concept of detecting a bounce email is, set returnPath, and then write a php script to receive mail from the returnPath, and search for email title that matches "Undelivered Mail Returned to Sender", after that, process the content of the email, and should able to find the invalid email address and reason of undelivered. my concept... in my own opinion, feasible but impractical, is that anyway to detect bounced email? correct me if i am wrong. thanks! Link to comment https://forums.phpfreaks.com/topic/110666-bouce-mail-from-sendmail-function/ Share on other sites More sharing options...
DarkWater Posted June 18, 2008 Share Posted June 18, 2008 I'm pretty sure it can take several hours to actually get a bounced mail message. Link to comment https://forums.phpfreaks.com/topic/110666-bouce-mail-from-sendmail-function/#findComment-567721 Share on other sites More sharing options...
kevin7 Posted June 18, 2008 Author Share Posted June 18, 2008 hmmm... another concern... any quick and dirty way? Link to comment https://forums.phpfreaks.com/topic/110666-bouce-mail-from-sendmail-function/#findComment-567730 Share on other sites More sharing options...
DarkWater Posted June 18, 2008 Share Posted June 18, 2008 PHP's mail capabilities are basically limited to saying "Oh hey send this for me when you get a chance" to a Sendmail process. =/ I mean, unless you start opening sockets to get the mail, but it gets really annoying and causes a decent amount of overhead. Try to find another alternative. >_> Link to comment https://forums.phpfreaks.com/topic/110666-bouce-mail-from-sendmail-function/#findComment-567731 Share on other sites More sharing options...
kevin7 Posted June 18, 2008 Author Share Posted June 18, 2008 opening socket to get the mail is my alternative... really couldnt find any solution.. sigh... well... search hard... Link to comment https://forums.phpfreaks.com/topic/110666-bouce-mail-from-sendmail-function/#findComment-567733 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.