Log in

View Full Version : send email in C



david.kansal
05-06-2011, 12:52 PM
i am having a console application.

i am using a break somewhere in the code, i want befor the break executes, a email would be sent to me as an alert. how can i send an email only using the C in the code just before the break execution

midhul
05-09-2011, 09:23 AM
All I can think of is to use an external command-line based email program.

Check this one: http://www.muquit.com/muquit/software/mailsend/mailsend.html#introduction

After getting that program, and putting it in the appropriate path,
Maybe in your C program you can do:




system("mailsend -f example@example.com -d example.com -smtp smtpaddress
-t yourmail@example.com -sub code borken");