Page 1 of 1

Problem saving mail attachment, imap_fetchbody

Posted: Wed Apr 28, 2010 3:51 am
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?