Solved

Sending Emails with C in Windows

Posted on 2004-03-29
4
252 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

Suggested Solutions

Title # Comments Views Activity
splitOdd10 challenge 5 125
Change the background and font colors in Notepad++ 5 155
programming a polycom voip phone 3 54
CSV file copy field 1 to field 2 2 39
This is about my first experience with programming Arduino.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …

749 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