Jump to content

bouce mail from sendmail function


kevin7

Recommended Posts

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

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. >_>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.