PARTE 2
Código C++:
Ver originalNoMangle int DLL_IMPORT_EXPORT seeSmtpConnectSSL(int,int,char *,char *,char *,char *);
NoMangle int DLL_IMPORT_EXPORT seePop3ConnectSSL(int,int,char *,char *);
NoMangle int DLL_IMPORT_EXPORT seeIsConnected(int);
int main(int argc, char *argv )
{int Code;
// attach SEE library
Code = seeAttach(1, 0); // evaluation keycode is 0
if(Code<0)
{printf("Cannot attach SEE\n"); }
// connect to SMTP mail server
Code = seeSmtpConnect(
0, // channel 0
(char *)"smtp.live.com:587", // your SMTP server
if(Code<0)
seeRelease();
}
// send email
Code = seeSendEmail(
0, // channel 0
(char *)NULL, // CC list
(char *)NULL, // BCC list
(char *)"SEE Test", // Subject
(char *)"This is a test.", // Message text
(char *)NULL); // MIME attachment
if(Code
<0) printf("email NOT sent\n"); // close connection to server
seeClose(0);
seeRelease();
}