LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to e-mail from LabVIEW with authentication

    I've looked at numerous threads on the forum and various VI's, but I'm still unable to find a solution to what seems to be a common problem.  How to get LabVIEW to send an e-mail?
   In basic LabVIEW, there are SMTP VIs that can send an e-mail - if your server doesn't use authentication.  How many of us have access to e-mail servers that don't use authentication?  A show of hands, please.  What, no hands????
   I then loaded NI's Internet Toolkit for LV.  It has FTP tools, URL tools, a bunch of other stuff.  No additional e-mail tools!
   I tried the activex component from Ostrosoft, which someone suggested on this forum.  It didn't seem to get installed properly on my system.  No go.  (It says it registered, but it doesn't show up in LV when I browse for ActiveX objects.)
   I tried the OpenG VI that supports authentication, but couldn't get that to work with two different servers.  The servers replied politely, but I never got the e-mails.  One possibility (at least for one server) is that the server uses SSL.  I didn't see anything in the OpenG VI that mentioned SSL.
   I haven't tried ActiveX or .Net directly to Outlook, but that might be another route.  One I would like to avoid.  I've used ActiveX with Word in the past, to my regret.  Micros**t likes to change their ActiveX interface with every new version, it seems.
   This is a really common problem, judging from the number of posts about it.  But from what I can see, there isn't a known, decent solution.
    Does anyone know of something I've missed?

Thanks,
   Dave T
-------------------------------------------------------------
David Thomson Original Code Consulting
www.originalcode.com
National Instruments Alliance Program Member
Certified LabVIEW Architect
Certified Embedded Systems Developer
-------------------------------------------------------------
There are 10 kinds of people: those who understand binary, and those who don't.
0 Kudos
Message 1 of 7
(3,730 Views)
That pretty much sums it up. As you suspect, the OpenG VIs probably didn't work because the servers you used were likely using SSL. I use those VIs with mail servers that don't use SSL, but do require authentication, and they work fine.

The .NET solution does not require Outlook, so if I had to pick one I'd use that.
0 Kudos
Message 2 of 7
(3,727 Views)
I  complained about the fact of missing authentication about 2 years ago but NI wasn't willing to change the SMPT VIs. I think we need some more votes to get them moving.
But I cannot present another solution, so the .NET will be the best way if you can stuck with Windows.
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 3 of 7
(3,699 Views)
Try this.

It wil be useful for you (I think)
Raymundo Cassani
0 Kudos
Message 4 of 7
(3,689 Views)
That's just the standard OpenG SMTP libraries with the mods that I actually made (originally in this post) in order to conform to email spec 822bis section 2.3. It does not do SSL.
0 Kudos
Message 5 of 7
(3,682 Views)
Although the library you posted looks like a further modification of the one I posted. Mine didn't have a "Habilitar Auth?" control and indicator.
0 Kudos
Message 6 of 7
(3,673 Views)
Hello All,

You are correct that the SMTP VIs do not support authentication.  If this is a feature that you would like to see in LabVIEW, make sure you visit the Product Suggestion page and submit feedback so that we can evaluate which features to focus our resources on improving.  I just wanted to let you know that we're listening.  Smiley Happy
Eric C.
Applications Engineer
National Instruments
0 Kudos
Message 7 of 7
(3,615 Views)