Reading a Bounced Email Message in PHP using imap functions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
siji86
Forum Commoner
Posts: 30
Joined: Fri Mar 26, 2010 6:15 am

Reading a Bounced Email Message in PHP using imap functions

Post by siji86 »

Hi,
In one of my applications, i am opening up a mailbox and reading the contents of the mailbox to find out about bounced emails. Basically my aim was to find the email-id that bounced, but i did not find any imap functions in PHP, I tried using, imap_fetchheaders, but the bounced email address is not there in the header. So finally had to parse the body of the message, and perform some string matching functions, but these bounce messages vary in different situations, i.e the body content is different, how to cope up with this situation?? Can anybody help....

Thanks in advance
:)
Post Reply