View Poll Results: How ToSend email in C or C++

Voters
1. You may not vote on this poll
  • C

    1 100.00%
  • C++

    0 0%

Thread: How to Send Email

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    2

    Question How to Send Email

    Hi All,
    I am wondoring how can we send email from C or C++. I know we have MAPI to send email, in C and C++. But when I am using MAPI, my C or C++ function should use outlook profile for perticular user. Means, If I wanted to user MAPI Microsoft outlook must be setup on computer from where I am executing my program. I dont want to do that. I have one exe, and I wanted to make it independent from Outlook set up.

    So, any one have idea about doing this then please give me reply.

    Also, I know one class in MFC which can use direct SMTP connection and sending email without using MS Outlook.

    I wanted same thing, connection with SMTP directly through C or C++, instead of MFC.

    Thank you very much,
    Sam Patel.

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Go read the RFCs on SMTP - http://www.rfc-editor.org/

    The get in some simple socket tutorials.....

    Connect to your SMTP server (whatever that may be) on port 25.

    Send strings detailing your email as per the RFCs you have already read....(Keywords like DATA, QUIT,HELO....etc)

    Its not too hard and can be done in a similar fashion with C++ or C...also, try a board search as this comes up regularly and posts have been given with detail on what to do

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to send email using c
    By moussa in forum C++ Programming
    Replies: 7
    Last Post: 05-28-2008, 08:19 PM
  2. Spam Filters. ISP based email is dying.
    By Mario F. in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 03-05-2008, 12:05 PM
  3. Send email
    By Abda92 in forum Windows Programming
    Replies: 4
    Last Post: 12-29-2007, 09:09 AM
  4. Send email via c++
    By davidboja in forum C++ Programming
    Replies: 13
    Last Post: 12-02-2007, 08:51 AM
  5. pointers
    By InvariantLoop in forum C Programming
    Replies: 13
    Last Post: 02-04-2005, 09:32 AM