Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieving mail attachments

Status
Not open for further replies.

ianicr

IS-IT--Management
Nov 4, 2003
230
GB
I've set up a script that will execute on mail sent to a certain address. How do I retrieve the attachment? I need to do this to ftp the attachment elsewhere. What do I need? munpack? uudecode?

Thanks
 
Try this if you have perl:
faq80-4138

IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter
 
I am assuming that, u are retriving the mail from a POP3 id.
The best way I can tell u is to use the java mail API.
Its simple and need a small amount of coding.

Or else use the Perl option .
Also u can write a C-program which can very well give u back the attachment, for which u need to understand the structure of the mail file very clearly. after that iat just some string manipulation .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top