Thread: Sending Email via C

  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    93

    Sending Email via C

    What is the easiest way to send an e-mail via C on a Debian system? Programmatically executing system() commands is an acceptable approach. However, will I have to set up my own mail server on my box to send emails if I use something such as mailx or sendmail? I only need to send messages, not receive them.

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Oh man, this is like the world's easiest thing to do. This link doesn't look half bad. As far as socket programming goes, Simple Mail Transfer Protocol is as basic as it gets. You just open a socket, and send the info. You will probably spend more time copying and pasting lines of code than actually writing them.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 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
  2. Sending Email - Using System.Net.Mail
    By b4ip in forum C# Programming
    Replies: 1
    Last Post: 06-01-2007, 12:34 AM
  3. Sending a email using c++
    By Guttih in forum C++ Programming
    Replies: 4
    Last Post: 12-08-2003, 07:00 PM
  4. sending strings from program to email
    By Unregistered in forum C++ Programming
    Replies: 3
    Last Post: 04-09-2002, 06:23 PM
  5. sending email from (C++)exe file through ASP
    By priya in forum C++ Programming
    Replies: 0
    Last Post: 01-18-2002, 10:14 AM