Solved

Sending Emails with C in Windows

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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 …
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

708 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

13 Experts available now in Live!

Get 1:1 Help Now