Solved

E-mail

Posted on 1998-09-01
5
216 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
  • 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 50 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Having a file "symlink" to a memory location (Windows) 6 173
why "." vs "->" 23 120
Grammars for C C++ and java 1 122
sameEnds challenge 3 159
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
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 nested-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 while-loops in the C programming language.

770 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