Problem saving mail attachment, imap_fetchbody

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
willberry
Forum Newbie
Posts: 1
Joined: Wed Apr 28, 2010 3:31 am

Problem saving mail attachment, imap_fetchbody

Post by willberry »

I am having problems with a program which monitors incoming emails and processes the attachments. Up until 23rd of April it was working fine, but now for certain emails from certain clients there are serious issues.

For some emails the call to imap_fetchbody now returns nothing when trying to fetch the attachment and for others the program “dies” whilst for others it continues without issue (as it had done for months prior to Friday).

The emails are backup reports from veritas/Symantec backupexec and are simple text bodies with html attachments. We need to extract and then process the attachment but are now having issues with getting at the attachment and so are unable to parse them.

Since it stopped working all of a sudden for a number of clients at the same time, does anyone know of any auto updates to either windows server or backup exec which might explain this? Alternatively could someone point me to an example of some php code which is bullet proof in extracting attachments from an email?
Post Reply