im making a script to get an attachment from an email automatically
and im having trouble trying to get the header and attachment from the body of the email
it would be grateful if someone could point me in the right direction, and show me the best way to do this.
Code:
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
OMFG
--
XxXoldsaltXxX (XxXoldsaltXxX@gmail.com)
------=_Part_222_33366824.1099271878999
Content-Type: image/jpeg; name="newell.jpg"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="newell.jpg"
//---Insert a large load of base64 encoded text---
------=_Part_222_33366824.1099271878999--
drop me a line on AIM if you want to, my sn is XxXoldsaltXxX