>Hi All,
>
>I was wondering if anyone knew how I could use the Mabry Mail Control to save an attachment. I need to be able to read the body part for a line of text to confirm the email. Then take the attached Excel file and save it to the network under a specific name. I know I can descend into the 'Parts' property of the email. But I'm blocked at how to recognize & save the file.
>
>TIA
>Mike
Mabry doesn't supply a simple save attachment command?
hmmm.
You can detect the parts by checking the headers for distinct signatures only found in attachments such as the content-disposition.
Also you will need to decode the parts using a decoder. The encoding format is found in the content-encoding header.
If you want an easier way, you can also check out my work. It handles all that automatically.
Brian Seekford
Seekford Solutions, Inc.http://www.SeekfordSolutions.comInternet ActiveX Controls and .NET Class Libraries.
SMTP/S FTP POP3/S HTTP/S SNTP MIME PING WHOIS TRACEROUTE NNTP DNS MX
Base64, UUEncode, yEnc, MD5, SHA1, URL, Quoted-Printable.
Resizer and Tooltips
Email Verification and more. Check us out!