ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Send email using smpt client

Hello,

 

I am trying to use the Send Email using SMTP Client example in LabVIEW.  I am trying to send through my gmail account.

 

The settings I have are as follows

 

Outgoing Mail server

smpt.gmail.com

 

Port 

587

 

Username

my gmail address

 

Password

my password

 

Enable TLS

Enabled

 

I am getting the following error

 

Error 363507 occurred at LabVIEWSMTPClient.lvlib:Send.vi:2280003

 

Please advise

Dan Shangraw, P.E.


   

0 Kudos
Message 1 of 8
(5,181 Views)

Did you google that? www.google.com/q=363507+smtp+error

 

It seems to be a certificate problem. The first hit isn't very useful.

 

The second hit, on lava might provide some answers:

https://lavag.org/topic/16601-labview-could-not-verify-the-authenticity-of-the-server/

0 Kudos
Message 2 of 8
(5,147 Views)

Hello,

 

The LAVA link you sent uses https web services.  I am using SMTP email.

 

Thanks

Dan Shangraw, P.E.


   

0 Kudos
Message 3 of 8
(5,126 Views)

Here's an old Gmail VI I found on the forums years ago.

 

As far as I know it still should work. Compare it to what you have.

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 8
(5,118 Views)

Hello,

 

It look like I need a CA file.  I don't know how to do this right now.

 

https://lavag.org/topic/7755-sending-file-to-email-with-smtp/

 

My application is my customer wants to send an email on a failure.  We will eventually use their network.  I was hoping to try test this function of the code.  I use gmail so it is not the end use case.

 

I guess I will have to lean on their IT department...

 

Thanks

Dan Shangraw, P.E.


   

0 Kudos
Message 5 of 8
(5,110 Views)

ASTDan wrote:

The LAVA link you sent uses https web services.  I am using SMTP email.

It's the same error, and probably the same problem. A certificate issue, as you already found out.

0 Kudos
Message 6 of 8
(5,102 Views)

Have you tried changing "Allow less secure apps" to ON in your Gmail account settings?  It introduces a security vulnerability, but could be a temporary workaround while you get your certificates worked out.

 

Gmail Setting.png

0 Kudos
Message 7 of 8
(5,100 Views)

ASTDan wrote:

It look like I need a CA file.  I don't know how to do this right now.

I used OpenSSL in the past to do that. Google "openssl create self signed certificate" and you'll find some tutorials.

0 Kudos
Message 8 of 8
(5,097 Views)