I am running linux. This problem maybe implemented many times over. I am not hitting right google search term. I need a way to send email from my c program, if that program fails to excute some other part of the code.

Any gurus like to shed some light on how and what to do?

Thanks.

Probably start research here.

system("mailx -s "hello" homework@live.in");

If you want to mail it to multiple people would you do it this way?

system("mailx -s "hello" [email]homework@live.in,homework2@live.in[/email] ");

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.