Hi Manuel
Great code - many thanks. I had this working really well to strip off attachments that were automatically forwarded to a php script. This worked until we changed mail server (moved to gmail) and the automatic forwarder stopped working. However when I manually forward the same message with the same attachment in gmail it works!
I have pasted the emails code into two files, one of which works & the attachment is stripped off (when I manually forward it) and one which does not work and the attachment is not found (automatically forwarded by gmail).
societe.org.gg/temp/works.doc
societe.org.gg/temp/does_not_work.d ...
The only real difference I can see is the Content-Transfer-Encoding which is different (base64 works, 7bit does not).
Does this make sense? Any help you can give would be much appreciated
Many thanks
Phil