LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView Mail function

Solved!
Go to solution

Hey everyone,

 

I'm trying to program Labview to send mails for me, but i can't figure out what i'm doing wrong. Can someone her help me figure it out.

It says Error 56 which i have tried to fix, but not with luck. 

 

Here you can see my Block Diagram. 

Mikkel14_2-1678710317542.png

 

Hope you can help me 🙂

Mikkel14_1-1678710307758.png

This is the error

 

0 Kudos
Message 1 of 9
(1,669 Views)

Have you tried the steps in Error 56 While Sending an Email via SMTP Server?

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 2 of 9
(1,653 Views)

Yes, but i can't find this one:

Mikkel14_0-1678713863856.png

 

0 Kudos
Message 3 of 9
(1,650 Views)

I have used the Send Mail Express VI to successfully e-mail "Warning Messages" when one of my routines detects a possible problem.  I'd be happy to test your code, but you only sent a very tiny picture of your code.  Please attach the actual VI (or a LabVIEW Snippet that can be opened and run with LabVIEW).  It would be best to "Save for Previous Version" if you are using LabVIEW 2022, as many of the "more experienced" LabVIEW developers (including me) don't necessarily upgrade quickly.

 

Bob Schor

0 Kudos
Message 4 of 9
(1,635 Views)

Thank you - i have attached the VI here

0 Kudos
Message 5 of 9
(1,626 Views)

Is your server address correct ? 
Normally an server address does not have a @ in it. it  might be smtp.gmail.com

0 Kudos
Message 6 of 9
(1,612 Views)

Where to find the server address? because i tried with smtp.gmail.com but that didn't work either

0 Kudos
Message 7 of 9
(1,602 Views)

Mikkel14_0-1678719184134.png

Something like this?

0 Kudos
Message 8 of 9
(1,597 Views)
Solution
Accepted by Mikkel14

Yes, you need to use smtp.gmail.com

And then you need to setup your account to allow for sending email from a program. 

 

https://support.google.com/mail/thread/120151921/can-t-send-mail-from-other-app-through-smtp-server-...

 

https://support.google.com/accounts/answer/185833?hl=en&ref_topic=7189145

 

Message 9 of 9
(1,585 Views)