I need function that sends to email (text.txt file) in SMTP protocol?

I've googled it up but I mostly found C# or VB codes...

Can I get a link or code of such function?

ok,thanks!

sorry for being a noob but what I had in mind is one simple function that will send textfile.txt to example@gmail.com

I downloaded this library but this is a large project,how to use this..??? and its big and is going to make my app has more kb's in size

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.