Solved

E-mail

Posted on 1998-09-01
5
214 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now