LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ERROR 62 WHEN SENDing email

Hi, I am trying to email a jpg image but I am getting this error. I checked the virus software and turned it off.no help. Well I even simply created a new vi just to email a jpeg image but this did not worked. Restarted the PC not helped either. My ver. is 8.2.1 running on win 7. Visa run-time is 4.5. 

 

LabVIEW: The system caused the network connection to be aborted. 

 

Thanks 

0 Kudos
Message 1 of 13
(4,637 Views)
A couple of Knowledge Base articles might help.  They suggest things like wrong server name, mail server is down and SMTP port 25 is being blocked.

http://digital.ni.com/public.nsf/allkb/B03ACFF4781DDAFE8625728F006C5B26

http://digital.ni.com/public.nsf/allkb/42556976302AFF3C86256D7C0080AB5C
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 2 of 13
(4,613 Views)
I think isp is blocking port 25. is there a way to use other ports instead of port 25.
0 Kudos
Message 3 of 13
(4,606 Views)
I'm not sure why you marked your response as an answer, considering you didn't even confirm that's the reason. Have you verified your ISP is actually blocking port 25? You can do so at a command prompt by issuing the command "telnet servername 25". Port 25 is a standard port for SMTP, though some servers use port 2525. A server could use a different port, but that would be defined by the server, not you. Have you tried to ping the server to make sure you have the correct address?
0 Kudos
Message 4 of 13
(4,581 Views)

Ok, I checked and found out that our server is using port 587 for outgoing mails. So in this case what should I do? 

Thanks 

0 Kudos
Message 5 of 13
(4,569 Views)
The LabVIEW SMTP VIs do not support using a different port for sending emails. You will need to use either the OpenG email VIs or you can also use .NET if you're on Windows.
0 Kudos
Message 6 of 13
(4,551 Views)

Thank you for your reply...

 

For what reason I do not know but I can not use .NET. I am using win7 but when I run the vi it just says I need .Net 1.1 or later. MY labview version is 8.2.1  

 

Now I try to use   OGIC smtp; now I get an error of #6. I think this is file I/O error. But the file exists and somehow I am getting this error........

 

 

0 Kudos
Message 7 of 13
(4,547 Views)

hakanka wrote:

Thank you for your reply...

 

For what reason I do not know but I can not use .NET. I am using win7 but when I run the vi it just says I need .Net 1.1 or later. MY labview version is 8.2.1 


Windows 7 comes with .NET 3.5, so you should already have .NET. The gmail example was written using .NET 2.0, but .NET 3.5 includes .NET 2.0. 8.2 does not officially support .NET 3.5, so it's possible that's the issue. I don't have Windows 7 here at work so there's no way for me to test it. I can do it at home, or if someone else has Windows 7and they're willing to try it, please chime in.

 


Now I try to use   OGIC smtp; now I get an error of #6. I think this is file I/O error. But the file exists and somehow I am getting this error........

Have you tried sending the email without an attachment? Do you know if your SMTP server requires SSL or TSL?

 

0 Kudos
Message 8 of 13
(4,536 Views)

Yes I have tried sending an email without the attachment but I still get an error #7 which is fNotFound.  Also server is ok here is the response I get;

SERVER: 220 mail.domain.com ESMTP IceWarp 9.1.0; Thu, 06 May 2010 09:46:20 +0300

CLIENT:   HELO localhost

SERVER:  250 mail.domain.com Hello localhost [xx.xxx.xx.xxx], pleased to meet you.

CLIENT:   auth login

SERVER:  334 VXNlcm5hbWU6

SERVER:  334 UGFzc3dvcmQ6

SERVER:  235 2.0.0 Authentication successful

CLIENT:   MAIL FROM:<hakan@xxxxxx.com>

SERVER:  250 2.1.0 <hakan@xxxxxx.com>... Sender ok

CLIENT:   RCPT TO:<hakan@xxxxxx.com>

SERVER:  250 2.1.5 <hakan@xxxxxx.com>... Recipient ok

 

I do not understand what is going on...

 

 

0 Kudos
Message 9 of 13
(4,506 Views)

Ok I now found the what is wrong. Since I am using win7 and as result win7 does not let a file written on c:\ drive. In the code, a tmp file is being created in c:\ drive and therefore the error. 

 

So now I tried I can send text files and read it but when I try to send a jpeg file and when I check my email I can not open it? 

 

I am at the last stage of my code I believe.After this problem I will be done for sure. 

0 Kudos
Message 10 of 13
(4,498 Views)