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?
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 .
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.