Good Morning .
The best option to send a mail is use the "CVI intenet toolkit".
There is in this toolkit an fp instrument to send a mail.
With this instrument is very easy send a mail with a flie.
This function send a mail
#define YOUR_SMTP_ SERVER "mailhost.terra.es"
#define TO_MAIL "f.bermejo.garapen@adegi.es"
#define FROM_MAIL "fb.Automation@terra.es"
#define SUBJECT "Es una prueba"
#define MESSAGE_TEXT "Es un mensaje de aviso de ciorrreo........."
int EnviarMensaje(void)
{
int error;
error = INET_SendMail(YOUR_SMTP_
SERVER,FROM_MAIL,TO_MAIL,SUBJECT,MESSAGE_TEXT,"c:\Analisis.doc");
if (error<0)
{
MessagePopup("AVISO","Error primero");
return 0;
}
return 1;
}
Best Regards,
Tximiskurdi