tags:

views:

417

answers:

4

I'm making a program that supports email functionality within a web browser. I want it to be able to email people and I'm trying to find out how I can accomplish this using C++. Could someone please help?

+1  A: 

You will need to install an SMTP server (supposing you are on windows), or use sendmail if on linux. If you do not wish to install an SMTP server, you can use an external one as specified in some examples.

John T
A: 

Sockets are your best bet. Your best resource for sockets in C and C++ is: http://beej.us/guide/bgnet/

For an implementation try here: http://www.codeguru.com/forum/showthread.php?t=300530

Next time, please try to google this.

Cheers, LogicKills

LogicKills
A: 

All you have to do is use a library that lets you use an SMTP server (Simple mail transfer protocol). What platform are you developing this for?

A: 

If all else fails, you could always write the mail to a file and try using system(3) to invoke mail(1).

$ mail -s 'OMG!' [email protected] < mymailfile

Charlie Martin