*******************UseDll1.cpp*********************
#include
typedef int (*function1_ptr) ();
function1_ptr function1=NULL;
int APIENTR
Just because the code runs and exits doesn't mean it's right! Are you sure that:
You should step through the code in a debugger to make sure all this is happening and that the code does get to function1(). If it does then my guess would be that your email function has a bug in it.