LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to send an email from a VI

Solved!
Go to solution
Do you have a firewall (hardware or software) that would be blocking the SSL port (587)?
0 Kudos
Message 41 of 50
(3,661 Views)

I just asked my IT dept. and they are blocking all ports. I guess that is my problem!

 

Thanks,
Vickie

0 Kudos
Message 42 of 50
(3,656 Views)
That would do it. Do you not have an internal SMTP server that you could simply use? If you don't host your own mail, then your mail may be hosted as part of your web hosting package, and you could use that SMTP server. Unless, of course, everyone in your company explicitly reads their email via a browser.
Message 43 of 50
(3,654 Views)

My IT dept. opened port 465 and I tried with that port on gmail and still got the error. I'm going to try with our internal SMTP and see if that works.

 

Vickie

0 Kudos
Message 44 of 50
(3,638 Views)

I worked with my IT dept. and we tried opening ports and using our internal SMTP server and I still get the 1172 error. It says the following:

Error 1172 occurred at Error calling method System.Net.Mail.SmtpClient.Send of ObjectId handle: 0xB651184 for obj 0xC06E73[System.Net.Mail.SmtpClient] in domain [LabVIEW Domain for Run] and thread 2892, (System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 Inner Exception: System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at                             
) in GmailLV86.vi

0 Kudos
Message 45 of 50
(3,619 Views)
Well, if you're using your own internal server, then I'm assuming you're putting in the required credentials for your server, and not your Gmail credentials, right? Does your internal SMTP server use SSL? If so, then does it use the same port?
0 Kudos
Message 46 of 50
(3,615 Views)

Yes, when I used our internal server I used those credentials and the proper SSL port.

 

I'm back to troubleshooting the Gmail, as this is the end result goal. Is there a ways to specify which .NET framework to reference? Maybe that's the issue?

 

Thanks,

Vickie

0 Kudos
Message 47 of 50
(3,610 Views)

OK, I think I have it working. Using port 587 I was able to send SSL mail through smtp.gmail.com. Even though gmail says you can use port 465 or 587, when my IT dept. opened 465, I still received errors. Using port 587 worked.

 

Thanks,

Vickie

0 Kudos
Message 48 of 50
(3,600 Views)
That's quite odd. Indeed, either port should be able to be used. Not sure why it works with 587 and not 465.
0 Kudos
Message 49 of 50
(3,590 Views)

Just what I needed. Simple and fast

0 Kudos
Message 50 of 50
(1,887 Views)