?
Solved

E-mail

Posted on 1998-09-01
5
Medium Priority
?
221 Views
Last Modified: 2010-04-15
Does anyone have or know of libraries of source code for sending e-mail programmatically? I'm using a command line shell to do this from C right now. I'm using Netscape's postmail. But I want to do this directly in the code instead.
0
Comment
Question by:fdsnet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 

Expert Comment

by:carterl
ID: 1252442
Depends how low-level you want to get.  If you're programming with a GUI builder such as Visual C++ or Builder then there are plenty of ready made components out there.

If you want to do the actual low-level coms handling at SMTP level then it's a simple case of creating a TCP/IP connection to which ever server is going to be your mail forwarder on port 25 and talking SMTP to the server.

The RFC's for SMTP are littered all over the place, I usually go to www.internic.net and somewhere around there is a list of all the major RFCs.  Hope this helps.
0
 

Author Comment

by:fdsnet
ID: 1252443
I'm really looking for a code sample. I can write to the RFC821 text. But sometimes that doesn't encompass all of the pitfalls.
0
 
LVL 1

Expert Comment

by:arbitrary
ID: 1252444
well it's actually pretty simple .
go to:
http://www.best.com/~regulus/bin/coolmail.zip
and download the code it's for VC++ right now  but with some
adjustment it will work briliantly on C++ Builder or whaterver ,

0
 
LVL 1

Accepted Solution

by:
arbitrary earned 150 total points
ID: 1252445
Well there's the MAPI api for messages and it includes emails.
but if you wanna talk in protocol level and fully control it ,
I recommend : http://www.best.com/~regulus/bin/coolmail.zip 


0
 

Author Comment

by:fdsnet
ID: 1252446
i didn't use it, but it was a good suggestion.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question