LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

test SMTP server

Dear Sir:

I used testing SMTP Server to test server name "express-smtp.cites.uiuc.edu" (port for this server is port 25 and does not require authentication) in my computer. I got Error 62 or 54 and error message "could not establish connection with express-smtp.cites.uiuc.edu.." How do I fix this problem? Thank you so much for your help. Please respond to my email "jsu@illinois.edu" Thanks.

 

Jingwei

0 Kudos
Message 1 of 12
(4,745 Views)

You should expect replies in this forum, not to your personal email address. (You should also get an email from the forum when there is a reply, if you've chosen that option in your profiles.)

 

I don't think this is a LabVIEW problem. From where did you try to connect to that server? It's possible that it is not accessible outside UIUC (or outside some smaller network within that).

0 Kudos
Message 2 of 12
(4,734 Views)

what I'd do ... open up a telnet session to it, send "HELO", and look for a response back. 

Get the response?  Server's good.

0 Kudos
Message 3 of 12
(4,725 Views)

Thanks SnowMule. How to open up a telnet session? I did telnet my-domain-name.com 25 in CMD before, it showed "could not open connection to the host on port 25: connect fail". But i got server name from our department IT manager. Is any thing related to firewall etc? Thanks.

0 Kudos
Message 4 of 12
(4,720 Views)

The telnet command you ran is correct. If you can't connect, then the machine isn't accepting connections. It's probably not a firewall issue on your end (telnet is not usually blocked by the default configuration of a firewall), although it is possible. It's not a LabVIEW problem, though, so you might want to talk to your networking staff.

0 Kudos
Message 5 of 12
(4,715 Views)

Thank you so much for your help. I contacted university networking staff, they did not answer me yet. I really like to use your SMTP Email Send Massage.vi (it looks simple). I want to make it work if it is possible. I tried your E-mail with MS Outlook Using activeX.vi ( downloaded from web). It works fine, but outlook always pop up the warning message (Allow, Deny and Help), I don't know how to avoid the warning message. My program need to automatica send message. Can you give me some suggestions or you have other labview program can send message autonatically. Attached is a simple program i modified from web (i did not use .net before). I try, but it did not work. I totally don't what is wrong. They gave me such long error messeage"

Error 1172 occurred at Error calling method System.Net.Mail.SmtpClient.Send
of ObjectId handle: 0xA411180 for obj 0xADAD03[System.Net.Mail.SmtpClient]
in domain [LabVIEW Domain for Run] and thread 3088,
(System.Reflection.TargetInvocationException: Exception has
been thrown by the target of an invocation.
Inner Exception: System.Net.Mail.SmtpException: Failure sending mail.
Inner Exception: System.Net.WebException: Unable to connect to the remote server
Inner Exception: System.Net.Sockets.SocketException: An established
connection was aborted by the software in your host machine 192.17.82.94:25
) in Test3.vi" Please help. Thanks

0 Kudos
Message 6 of 12
(4,709 Views)

I am sorry, i forgot to tell you i use labview 8.2.1. I attached another VI ( i am not sure i can use version 8.2 to test it. It originally from 8.6). I try it, same problem, but error has slightly different. Here is error showed:"

Error calling method System.Net.Mail.SmtpClient.Send of ObjectId handle:
0x9EC1170 for obj 0x27B5D90[System.Net.Mail.SmtpClient] in domain
[LabVIEW Domain for Run] and thread 3088, (System.Reflection.TargetInvocationException:
Exception has been thrown by the target of an invocation.
Inner Exception: System.Net.Mail.SmtpException: Failure sending mail.
Inner Exception: System.Net.WebException: Unable to connect to
the remote server
Inner Exception: System.Net.Sockets.SocketException:
An established connection was aborted by the software in your host
machine 192.17.82.68:25
) in Test4.vi"

I don't know why the host machine address is different (i am using same computer). Thank you so much for your help. 

 

0 Kudos
Message 7 of 12
(4,703 Views)

Hello Joan331,

 

It definitely sounds like UIUC's IT department has done something to disable accessing that SMTP server in the way you are trying to access it.  I know that when I was a student there, if I was off-site I couldn't access many internal servers unless I was using the VPN client to connect in.  You may try using the VPN client if you are trying to connect to that server off-site, but if you are on-site and still cannot connect, I would go ahead and see what the IT department says before you spend too much time looking into the errors in the VIs that you are using.  When you hear back from them, let us know what they've said; we'll go from there!  

| Zach J. | Systems Engineer, HIL and Test Cells | National Instruments |
0 Kudos
Message 8 of 12
(4,682 Views)

Hi BluesKnight:

Thank you so much for your help. Our IT manager reinstalled the McAfee for my computer. Now when i run the "Test Smtp server.vi", i got "connected to SMTP Server express-smtp.cites.uiuc.edu. The server replied 220 incoming-relays.illinois.edu ESMTP Tue,9 Apr 2013 16:40:40-0500".

 

Now I tested the "E-mail Notification.vi" and my"test5.vi" (attached, please check for me). Both did not give any error message, but i did not receive any e-mail (SMTP Email Send Message.vi did not send message). Please help. Thanks a lot.

 

0 Kudos
Message 9 of 12
(4,667 Views)

To what domain are you trying to send mail? Are you sure that mail server allows relaying?

 

The sequence structures in your code should be removed.

0 Kudos
Message 10 of 12
(4,662 Views)