C Function Telnet Email

This is a discussion on C Function Telnet Email within the C Programming forums, part of the General Programming Boards category; I am trying to make a function in C that executes Telnet and passes parameters to telnet to have it ...

  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    5

    C Function Telnet Email

    I am trying to make a function in C that executes Telnet and passes parameters to telnet to have it send an email.

    I know what commands to send to telnet, but I don't know how to pass commands to Telnet.

    Does anyone know how I would go about passing commands to Telnet from a C function?

    thx

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    If you're using *NIX there are some functions that will send an email for you. I don't know if that's what you're looking for or not.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  3. #3
    Registered User
    Join Date
    Apr 2005
    Posts
    5
    I don't know what *NIX is. But I know that from the command prompt I can use Telnet to send an email. Shouldn't I be able to execute Telnet from a C function and pass it the commands to send an email --- just by passing it the same commands that I give it when I use it from the command prompt????

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    *NIX means Linux or UNIX or some variation. If you don't know what it is, you're probably using Windows.

    If you want to execute a DOS command, you an use system("command arg1 arg2 arg3"), or better yet, read the FAQ.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Undefined Reference Compiling Error
    By AlakaAlaki in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2008, 12:45 PM
  2. Message class ** Need help befor 12am tonight**
    By TransformedBG in forum C++ Programming
    Replies: 1
    Last Post: 11-29-2006, 11:03 PM
  3. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  4. <Gulp>
    By kryptkat in forum Windows Programming
    Replies: 7
    Last Post: 01-14-2006, 01:03 PM
  5. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21