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! Link to comment https://forums.phpfreaks.com/topic/226492-php-newsletter-help/ 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 Link to comment https://forums.phpfreaks.com/topic/226492-php-newsletter-help/#findComment-1169038 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: [email protected]" . "\r\n"; $headers .= "Error-To: <" . "[email protected]" . ">\r\n"; $headers .= "Return-Path: <" . "[email protected]" . ">\r\n"; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; Link to comment https://forums.phpfreaks.com/topic/226492-php-newsletter-help/#findComment-1169114 Share on other sites More sharing options...
ramboangel11 Posted February 3, 2011 Author Share Posted February 3, 2011 any ideas? Link to comment https://forums.phpfreaks.com/topic/226492-php-newsletter-help/#findComment-1169198 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 Link to comment https://forums.phpfreaks.com/topic/226492-php-newsletter-help/#findComment-1169209 Share on other sites More sharing options...
ramboangel11 Posted February 4, 2011 Author Share Posted February 4, 2011 ^^bump Link to comment https://forums.phpfreaks.com/topic/226492-php-newsletter-help/#findComment-1169653 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.