LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-04-2005, 07:20 PM   #1
eigenyeugen
LQ Newbie
 
Registered: Jan 2005
Location: UK
Distribution: Debian
Posts: 11

Rep: Reputation: 0
how to make a C program send email notification/alerts?


Hi,

I'm writing a C program in linux that needs to run unattended and reliably for long periods of time. I want to give it the ability to email me if something goes wrong (e.g. running out of HD space and other problems). Can anyone recommend a nice and simple way of doing this?

Thanks in advance.
Matt
 
Old 01-04-2005, 08:16 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
A www.google.com/linux search for "mail library" turned up some hits. The first two being:

libESMTP
libEtPan

If you don't want to hook into a library, then you'll have to make do with using a system call to run "mail" or something similar.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make cron not send email? bbeers Slackware 7 11-11-2005 10:31 AM
Nagios not sending alerts through email lemay_jeff Linux - Networking 2 04-11-2005 10:28 AM
Mailman-2.1.5 can't send notification e-mail igueths Linux - Software 1 12-22-2004 02:13 PM
How do i setup email alerts? mjpowersjr Linux - Networking 4 11-23-2004 01:10 AM
logdrake email alerts joshx Mandriva 3 02-20-2004 02:38 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration