Page 1 of 1
Programming help - libraries for sending emails
Posted: 2006-09-13 02:19pm
by Sarevok
I know there are some programmers on this forum so I am asking for help here. I am working on an app that needs to send emails using a gmail account. When it comes to apps like this I am a total newbie. I tried some of the SMTP mail libraries I found the web but none of them worked. It would be very helpful if someone could point out a library that would do what I wanted. My needs are simple. The app only needs to send email using an exisiting account. Nothing more than that.
Posted: 2006-09-14 12:42am
by nickolay1
SMTP is a fairly simple protocol, so you shouldn't have much difficulty implementing your own functions for sending mail.
http://en.wikipedia.org/wiki/Smtp contains some information to get you started.
Posted: 2006-09-14 12:21pm
by Sarevok
Destructionator XIII wrote:What language / platform are you using? Windows, Linux, Mac, .NET? C, C++, C#?
Shit I forgot to mention this uttermost important detail.
I am using C++. Development suite is Visual Studio.NET.
Posted: 2006-09-18 04:32pm
by ThatGuyFromThatPlace
Visual studio 2005 is free on the web and comes with a pretty comprehensive library. I've had great success using it with c++
Posted: 2006-09-18 04:52pm
by phongn
ThatGuyFromThatPlace wrote:Visual studio 2005 is free on the web and comes with a pretty comprehensive library. I've had great success using it with c++
The Express Editions may be free, but VS 2005 itself is not.
Posted: 2006-09-19 09:58am
by Faqa
Is this MANAGED c++, or unmanaged?
If managed, you can use the .NET libraries, which make it simple. If not, yeah, probably roll your own.
Posted: 2006-09-19 12:26pm
by Pu-239
http://libsmtp.berlios.de/ ?
You might have to do some porting to windows.
Posted: 2006-09-19 01:28pm
by ThatGuyFromThatPlace
phongn wrote:ThatGuyFromThatPlace wrote:Visual studio 2005 is free on the web and comes with a pretty comprehensive library. I've had great success using it with c++
The Express Editions may be free, but VS 2005 itself is not.
true, but the express edition still comes with a pretty sweet library. It's what I use that thing has saved me practically days of coding on many programs
Posted: 2006-09-19 01:30pm
by phongn
ThatGuyFromThatPlace wrote:true, but the express edition still comes with a pretty sweet library. It's what I use that thing has saved me practically days of coding on many programs
Don't the VSEEs link to the .NET Framework?
Posted: 2006-09-19 03:19pm
by Faqa
Don't the VSEEs link to the .NET Framework?
The difference between express and full is mainly in developemental aids. It's still the .NET Framework underneath. You could write it in notepad and MS's free DL of the framework if you want to.
That said, if this IS managed C++, the matter is easy. Just set up your network credentials, and you can practically fill in the blanks.
All under System.Web.Mail in .NET 1.1.
If you're using .NET 2.0, System.Net.Mail is even simpler.
Either way, set up the credentials, use the pre-made MailMessage class, and send it off to the server.