[C++] Smtp Console To Daemon

Discussion in 'IT and Computer-Related Degrees' started by Mandy, Apr 16, 2009.

Loading...
  1. Mandy

    Mandy Guest

    I came across a semi - understandable Source for
    a Smtp Socket, only one peoblem, its a console, and I d rather have it be a daemon. I have the
    source, and Ive got it 90% daemonized, but I have a problem, when it was a console I had to declare
    a txt file to use as a message body, which is fine, the problem is: I cant find what to change
    to declare where the the text file is as a daemon, I will post my modified source so that
    you can see what I mean. I simply need to find where to imput the string "c:\\dcouments blah
    blah\\mine\\ blah\\ message.txt"

    #define WIN32_LEAN_AND_MEAN

    #include <stdio.h>

    #include <stdlib.h>

    #include <fstream.h>

    #include <iostream.h>

    #include <windows.h>

    #include <winsock2.h>
     
  2. sentinel

    sentinel New Member

    Maybe this will help you... VBScript To Send Email Using CDO
     

Share This Page