how to send email in C

S

shuge.lee

How to send email in C/GTK+?

I need to design small lib which has only a few dependencies from
other packages based on SMTP ?

Thank for reply.
 
C

CBFalconer

How to send email in C/GTK+?

I need to design small lib which has only a few dependencies from
other packages based on SMTP ?

This newsgroup deals with the C language, as described in the
various ISO standards and the K&R books. Other things are
off-topic. I don't know where you should go with this, but it is
not here. Possibly a newsgroup that deals with your actual system.
 
A

Antoninus Twink

I don't know where you should go with this, but it is not here.

Ah, the wonderful world of CBF...

Question about C? Check.

No more appropriate group to post it to? Check.

Send the OP away with a flea in his ear anyway? Oh yes...
 
V

viza

How to send email in C/GTK+?

Fork and exec the message submission program, or botch it with popen():

FILE *email= popen( "/usr/lib/sendmail", "wb" );

fprintf( email, "To: (e-mail address removed)\r\n" );
fprintf( email, "From: (e-mail address removed)\r\n" );
fprintf( email, "\r\n" );
fprintf( email, "Hello!\r\n" );

pclose( email );
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top