LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

InetSendMail Error with Attachment

hi
 
When I send email without attachment use CVI, it works well. but when I add attachment, it ruturn -7 error.
 
how can I fix it?
 
thanks!
0 Kudos
Message 1 of 4
(3,573 Views)
Have you tried the CVI SendMail.c example project?  The send mail example includes a GUI that provides a control for selecting files for attachment and sends an e-mail. It would be interesting to see if the NI example code fails also.

Have you tried using a e-mail client like Outlook Express on your target system to send the same attachment to the same destination?  If that fails, then it's some other problem than the CVI application.

Menchar
0 Kudos
Message 2 of 4
(3,557 Views)

yes, i tried the CVI sample sendmail.c but it also can't send attachment.

but i can use Outlook send the mail with attachment.

0 Kudos
Message 3 of 4
(3,546 Views)
I wonder if it's your anti-virus software killing it because of the attachment, or maybe a Windows security policy.


0 Kudos
Message 4 of 4
(3,529 Views)