Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to create a program that any time an email comes in with an attachement, the attachment is noticed and ftp'd to my server. How can I go about doing this?

Steps:
1) Email comes in
2) Email scanned and detected to have attachment
3) Attachement is ftp'd to my server
4) Done

(easier said then done i guess..)

Thanks in advance! :)
Posted
Comments
PIEBALDconsult 26-Nov-15 15:51pm    
A rule with a macro would work, but there are limitations.
Afzaal Ahmad Zeeshan 26-Nov-15 16:18pm    
That is where IoT comes in and you write a web service which is able to
- Handle your IMAP servers to find out when a new email arrives.
- Trigger another service to load the email and see if an attachment is available.
- In case an attachment is available, a new service (actually a child service) is triggered to download and transmit over FTP protocol.

Now, make up your mind and chose a language. This decisions is going to cost you. If you chose C#, head over to MSDN and find the networking APIs.

If you select C, may Google be with you. :-)

1 solution

One of the available open-source libraries which does it all is OpenPop.NET: http://sourceforge.net/projects/hpop[^].

Don't be confused: it may seem that the library is about POP3 protocol, this is not so. Yes, client-side POP3 protocol implementation is available, but this is not the most important part of it. The project can be used as a detailed references on all kinds of standards/RFCs on MIME types, formats, everything which is needed for comprehensive parsing of an e-mail message.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900