Results 1 to 2 of 2

Thread: send email in C

  1. #1
    Join Date
    Aug 2010
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Red face send email in C

    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

  2. #2
    Join Date
    Feb 2008
    Posts
    81
    Thanks
    8
    Thanked 5 Times in 5 Posts

    Default

    All I can think of is to use an external command-line based email program.

    Check this one: http://www.muquit.com/muquit/softwar...l#introduction

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

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •