Solved

E-mail

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
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 while-loops in the C programming language.

739 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