Thread: how to send Email By C Program ??

  1. #16
    Registered User
    Join Date
    Dec 2010
    Location
    Lucknow, India
    Posts
    72
    Quote Originally Posted by rags_to_riches View Post
    Are you seriously expecting one of us to write you an SMTP server in C?
    dude.. I'm capable to write my own code(s).. But I never write programs in API.
    so i just want to know that
    Is it Possible to create a SMTP server as well as Mailing Facility in a single C program ??
    And
    From where Should I start in order to do So.. ???? because i never write Code in API and in network programming using C.!!!

  2. #17
    Registered User
    Join Date
    Dec 2010
    Location
    Lucknow, India
    Posts
    72
    Quote Originally Posted by Salem View Post
    Step 1 is install a decent compiler!

    haven't you figured that much out yet?
    Ok Buddy.. now I have Pelles C compiler.
    Now whats the Next Step..??? :-)

  3. #18
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Gaurav Singh View Post
    dude.. I'm capable to write my own code(s).. But I never write programs in API.
    so i just want to know that
    Is it Possible to create a SMTP server as well as Mailing Facility in a single C program ??
    And
    From where Should I start in order to do So.. ???? because i never write Code in API and in network programming using C.!!!

    If you are capable of writing your own code why are you pestering us about it?
    Go, write your code...

    As I told you in the first reply ... Yes it is entirely possible.

    Where should you start?
    Well, first you need to learn C programming.
    Then you need to learn about the Windows Internet API and Winsock.
    From there you need to look up the RFCs for SMTP and POP3 and follow the RFCs to create your final project. ...

    You know... the same thing the rest of us would do... except we would do it without wasting an entire Forum's time repeatedly asking the same childlike questions and ignoring the answers.
    Last edited by CommonTater; 03-01-2011 at 11:29 AM.

  4. #19
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Well now that you've got a compiler that will generate Win32 code

    1. Read this to find out how to use sockets in general
    Beej's Guide to Network Programming

    2. Then read this to find out how to talk "smtp"
    RFC 821 - Simple Mail Transfer Protocol (RFC821)
    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.

  5. #20
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675
    write Code in API
    What the heck does that mean?

  6. #21
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by rags_to_riches View Post
    What the heck does that mean?
    Generally it means working with the Windows Application Programming Interface, rather than using some higher level language which tends to hide native windows calls.

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