ramboangel11 Posted February 2, 2011 Share Posted February 2, 2011 I have a table in my database named newsletter, with a field named email. Is there a way in php to delete the row with email address field if the email is undeliverable to that email address because it no longer exists? Thank you in advance! Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted February 2, 2011 Share Posted February 2, 2011 You would have to use the "Errors-to:" mail header to send the bounced messages to a email address. The bounced messages could then be read/processed by a PHP script. This is the way most email list programs operate. They usually count the number of bounces within a certain time frame and remove the email address if that number goes over some threshold. Ken Quote Link to comment Share on other sites More sharing options...
ramboangel11 Posted February 2, 2011 Author Share Posted February 2, 2011 I'm not getting anything and I've added false emails to the email list. Also, they are coming from "anonymous" and not the email I put in the from field. $headers .= "From: myemail@aol.com" . "\r\n"; $headers .= "Error-To: <" . "email@aol.com" . ">\r\n"; $headers .= "Return-Path: <" . "email@aol.com" . ">\r\n"; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; Quote Link to comment Share on other sites More sharing options...
ramboangel11 Posted February 3, 2011 Author Share Posted February 3, 2011 any ideas? Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted February 3, 2011 Share Posted February 3, 2011 I'm doing some experiments. I will get back to you. Ken Quote Link to comment Share on other sites More sharing options...
ramboangel11 Posted February 4, 2011 Author Share Posted February 4, 2011 ^^bump Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.