Thread: sending an email through a C program

  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    108

    sending an email through a C program

    hi, i have a program that keeps crashing every so often.

    it accesses the COM port and reads some data. i was wondering if i could add on a piece of code, or create a seperate program which would send an email to a specific email address that the program has crashed.

    or would it be better (but far far less useful) to use popup boxes for communication.

    thanks

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Or fix the crash?

    Seriously, there are plenty of ways of sending an email which don't involve writing any C

    A simple command file may suffice
    Code:
    myCrashingComPortProgram.exe
    myCommandLineSendAnEmailProgram.exe -S "It's dead Jim" user@address
    The email is sent when the program exits.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    108
    Quote Originally Posted by Salem
    Or fix the crash?

    Seriously, there are plenty of ways of sending an email which don't involve writing any C

    A simple command file may suffice
    Code:
    myCrashingComPortProgram.exe
    myCommandLineSendAnEmailProgram.exe -S "It's dead Jim" user@address
    The email is sent when the program exits.
    thanks for the help.

    in an ideal world, i would fix the crash.

    however, no program is guaranteed to be stable (you will know that yourself) and thus even if i fix the crash, the option of having the email would be beneficial for the future crashless program!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C code for Sending Email with attachment
    By Mr coder in forum C Programming
    Replies: 5
    Last Post: 03-06-2009, 08:15 AM
  2. Catching all input and sending it to another program
    By RedWind in forum C Programming
    Replies: 13
    Last Post: 09-15-2008, 12:51 PM
  3. sending email
    By hiya in forum Networking/Device Communication
    Replies: 11
    Last Post: 08-06-2005, 03:05 AM
  4. I need some help with my program please.
    By agentxx04 in forum C Programming
    Replies: 9
    Last Post: 09-26-2004, 07:51 AM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM