473,387 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

how to send email in C

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.

Oct 6 '08 #1
6 25743
"sh*******@gmail.com" wrote:
>
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.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
Oct 6 '08 #3
On 6 Oct 2008 at 4:53, sh*******@gmail.com wrote:
How to send email in C/GTK+?
That depends exactly what you mean.

If you want to transfer messages to your local MTA for delivery, then
libESMTP (http://www.stafford.uklinux.net/libesmtp/) could be a good
bet.

If you're trying to write an MTA yourself, you could take a look at the
source code to libESMTP as a starting point.

Oct 6 '08 #4
On 6 Oct 2008 at 6:41, CBFalconer wrote:
"sh*******@gmail.com" wrote:
>How to send email in C/GTK+?
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...

Oct 6 '08 #5
On Sun, 05 Oct 2008 21:53:10 -0700, sh*******@gmail.com wrote:
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: jo**@foo.com\r\n" );
fprintf( email, "From: ja***@foo.com\r\n" );
fprintf( email, "\r\n" );
fprintf( email, "Hello!\r\n" );

pclose( email );

Oct 6 '08 #6
thank you
Oct 8 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Salim Afþar | last post by:
Hi, I'm using CDO object to send email but it doesn't send any email and it does not give an error. My code look like this: Dim iMsg2 Dim iConf2 Dim Flds2 Const cdoSendUsingPort = 2 set...
1
by: mhawkins19 | last post by:
I have a form built and on the onclick event I validate all of the fields and then if the form is ok, on the submit event I run a javascript function to set a cookie and download a file from the...
1
by: Jay McGrath | last post by:
Help - trying to send a simple text email with with as little user intervention. I am trying to create a button in my Access application that will automatically send a simple text email. It...
9
by: Bob Jones | last post by:
We have developed a commercial ASP.net application (personal nutrition management and tracking); we want to send smtp email from within it. For our development box, we use WinXP Pro, IIS 5.5,...
2
by: Ron | last post by:
hi guys, I am trying to send email using smtpMail. I can send emails inside the organization, but out of the organization I get an error "The server rejected one or more recipient addresses. The...
5
by: Andreas | last post by:
I am working with three computers, my developing computer, a Web Server and a Mail Server (Exchange). I am trying to send a email from the Web Server via the Mail Server to a valid email address...
3
by: Gerard | last post by:
Hello I have created a windows service to monitor a database, it starts some checks when a timer elapses. The checks send emails depending on their findings. My issue is that when I created a...
2
by: ucasesoftware | last post by:
i start a process to send email via Outlook I have succes to build the email text, objet, sender... but i want to automate the "send"... i don't want my users to click on Send email button......
3
by: =?Utf-8?B?SHVnaA==?= | last post by:
Hi There, I use follow code to send email inside VB.NET 2005. It does not work well. Error message of "Failure sending email" would occue. However, email was sent out sometimes. I am confused...
16
by: =?Utf-8?B?Q2hlZg==?= | last post by:
I can use outlook2003 to send email,but I cann't use this code below to send email. Please help me to test this code and instruct me how to solve this problem in detail. software...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.