siji86 Posted April 7, 2010 Share Posted April 7, 2010 Hi, I have an application which sends emails to various members in a mailing list.Now, the application also needs to keep track of the emails that gets bounced. So currently what i have done is as follows: 1) After sending a mail, the record is inserted into the database like there are some ids like campaign id, page id associated with the mail. 2) When a mail bounces, the bounced email is delivered to the mailbox. 3)There is a scheduler in php that runs at a particular time say twice a day. 4)This scheduler will open the mailbox where the bounced mail arrives and read all the bounced mails and put this entry into the database. Now, the problem is that the bounced mails which i am receiving has only got the bounced email address as its identification, but i also need a campaign id and page id which is associated with every mail. So i am finding a way in which one can send these ids along with the mail which is being sent. So i searched on google, so i found that you need to set return paths while sending mails and you can also append some variables to that return path. This is the link to the article that explains this: http://forums.theplanet.com/lofiversion/index.php/t89873.html I have tried out this example i.e tried using the return path, but the bounced email never gets delivered. This is all about the problem that i am facing, also i am using swift mailer library in php for sending mails. If you find some solution, please do mail me on this id. Thanks and Regards, Elizabeth Link to comment https://forums.phpfreaks.com/topic/197833-checking-bounced-mails-in-php/ Share on other sites More sharing options...
teamatomic Posted April 7, 2010 Share Posted April 7, 2010 Put the extra data you need to retrieve in the email header. from the php manual $headers = 'From: [email protected]' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); HTH Teamatomic Link to comment https://forums.phpfreaks.com/topic/197833-checking-bounced-mails-in-php/#findComment-1038203 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.