joined:June 10, 2007
My company started sending out emails to clients, and started receiving heaps of undelivered emails.
My company uses Google Mail for their corporate email accounts, and have a sort of no-reply email address that is used for checking how many emails have returned. Emails are sent through a custom PHP mail system. Yesterday out of 70 000 emails sent, 25 000 got returned with undelivered status. Going through all of them and deleting them by hand is ... yeah .. :)
Is there any way to efficiently check what emails where undelivered and sent back?
My thought was to login to Google Mail with curl(), and retrieve all the undelivered emails, but is there a way to sort of pipe the emails from Google Mail into a PHP file, that handles recognition and deletion of those undelivered emails?