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>