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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code to ftp files and then send email with files attached

Status
Not open for further replies.

confuseddddd

Programmer
May 22, 2003
53
US
I am a "newbie" to .net and need some guidance. I want to be able to retrieve files from a windows application server and then ftp these files to another windows directory location and then attach these files in an email to send. First, can this be done and if it can be done, can someone point in the direction of some manuals in order to be able to attempt to write this. Any assistance would be most wonderful
 
For some unknown reason, MS decided not to include an FTP class in the .Net frame work. That gives you 3 options.
1) Use the FTP API from windows
2) Use a 3rd party FTP class
3) Make your own FTP class

If you want to learn a lot about networks, communication, and classes, then build your own. There are plenty of samples and instructions on the web (Google: "VB.Net" FTP Sample)

If you want to pick up a solid .Net FTP library, I would recommend They have a pretty solid FTP library, it's free, and under a GPL(open source) license.

If you want to use the API, just search the forum, there was a post on the FTP API with in the last week.


As for mailing, that matters much more on your network and email system. Depending on your set up, there are multiple options.

-Rick

----------------------

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top