Like Tree1Likes

how to send Email By C Program ??

This is a discussion on how to send Email By C Program ?? within the C Programming forums, part of the General Programming Boards category; hi. Is It possible to send Email using a C program ?? And is it necessary to Create a SMTP ...

  1. #1
    Registered User
    Join Date
    Dec 2010
    Location
    Lucknow, India
    Posts
    72

    how to send Email By C Program ??

    hi. Is It possible to send Email using a C program ??
    And is it necessary to Create a SMTP server in the PC ??
    I mean can we Create a SMTP server in the Program while sending the Mail..
    please Reply..

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Gaurav Singh View Post
    hi. Is It possible to send Email using a C program ??
    Of course it is.

    Ask yourself what language these softwares are most likely to be written in....
    The answer should be obvious.

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,420
    That depends, do you still have that "TurboC" millstone around your neck holding you back/down/under (as appropriate)?
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    Registered User
    Join Date
    Dec 2010
    Location
    Lucknow, India
    Posts
    72
    Can you give me Some hint About the Program's code ??
    I heard that Call to system() can do it easily.
    And Is it possible to Create the SMTP server via C program ??

  5. #5
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Gaurav Singh View Post
    Can you give me Some hint About the Program's code ??
    Sure...
    Code:
    #include <stdio.h>
    
    int main (void)
      {
    
        // insert rest of code here
    
         return 0;
    }
    Really... hit Google, do some searching... I promise you there are lots of examples out there.

  6. #6
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Salem View Post
    That depends, do you still have that "TurboC" millstone around your neck holding you back/down/under (as appropriate)?
    Ahhh yes... the Dinosaur that just won't die!

  7. #7
    Registered User
    Join Date
    Dec 2010
    Location
    Lucknow, India
    Posts
    72
    Lolzz hahaa..
    Hey tater THANKS anyway.. :-)

    But Can we Write a Code for an SMTP server in C language??

  8. #8
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Gaurav Singh View Post
    Lolzz hahaa..
    Hey tater THANKS anyway.. :-)

    But Can we Write a Code for an SMTP server in C language??
    No "we" cannot... but you might be able to.

  9. #9
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,420
    @Gaurav Singh
    Are you still using TurboC 0 - yes or no.
    It's a simple question that you're not answering.

    Come back when your answer is NO, I am not using TurboCrap any more.
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  10. #10
    Registered User
    Join Date
    Dec 2010
    Location
    Lucknow, India
    Posts
    72
    @Salem:
    I'm using Borland C for Programming.

  11. #11
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    611
    Quote Originally Posted by CommonTater View Post
    Hi Salem...
    Soooo... what are you using now?
    Probably not some third rate compiler whose idea of optimization is causing bugs. You just got to look at the most recent changelog to realise this:
    •Fixed C runtime problem with memmove() for overlapping buffers
    Seriously? It took 6 and a half versions to be able to use memmove for pretty much it's only usage, and you're trusting your code to this guy when VS is free to use and GCC and Clang/LLVM are open source too?

    Might be better than Turbo C, but just barely.

  12. #12
    Registered User
    Join Date
    Dec 2010
    Location
    Lucknow, India
    Posts
    72
    Please. Someone Solve my problem.... :-(

  13. #13
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,420
    Step 1 is install a decent compiler!

    haven't you figured that much out yet?
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  14. #14
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,648
    Are you seriously expecting one of us to write you an SMTP server in C?

  15. #15
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Gaurav Singh View Post
    Please. Someone Solve my problem.... :-(
    Here, let me say what everyone else is trying not to say...

    Solve your own effing problem

    We have given you considerable good advice, not the least of which is to LISTEN to what we are telling you.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sending a simple email in C++?
    By Coukapecker in forum C++ Programming
    Replies: 6
    Last Post: 04-09-2010, 12:36 PM
  2. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 12:27 PM
  3. email program
    By fromhome in forum C++ Programming
    Replies: 1
    Last Post: 07-13-2006, 04:38 PM
  4. Send keystrokes to a running program via batch file
    By ganjamon in forum Windows Programming
    Replies: 2
    Last Post: 08-16-2005, 08:08 AM
  5. Replies: 2
    Last Post: 05-10-2002, 04:16 PM

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