Solved

Sending Emails with C in Windows

Posted on 2004-03-29
4
255 Views
Last Modified: 2010-04-17
Hi,

I would like 2 find out how can I send emails with C in Windows.
In my program, I'm suppose to notify my user via email if error occurred.
Pls advice how can I send emails perhaps via Outlook with C.  Will b glad if can provide sample code.

Really appreciate & thks! (",)

mandy
0
Comment
Question by:mandy_less
[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
4 Comments
 
LVL 19

Accepted Solution

by:
Melih SARICA earned 63 total points
ID: 10711517
0
 
LVL 69

Assisted Solution

by:Callandor
Callandor earned 62 total points
ID: 10714815
If you have an SMTP mail server in your network, you can use a free program like bmail to send notifications.  In your C code, just make a system call to the bmail executable:

bmail -s yoursmtpmailserver.yourcompany.com -t username@yourcompany.com -f mandy_less@yourcompany.com -a "your error message"

Either use the full path of bmail or include it in the path of executables.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Progress

627 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