07-12-2011 09:00 AM
I've found sample code that shows how to send email through Outlook using LabVIEW. On any computer I log into on our network, my profile loads and I have access to the exchange server through Outlook so the code works.
However, I am developing a program that will run on a lab computer with a generic PC login that is shared among everyone in the lab. Exchange server/outlook is not set up for the generic user.
Is it possible to have labVIEW send an email through the exchange server with a server name, username, and password coded into the executable?
07-12-2011 09:20 AM
You would need to send a standard SMTP message via Exchange. The Exchange server will likely require authentication, so you won't be able to use the built-in SMTP VIs, as they do not support authentication. If you're on Windows you can use .NET (see this example), or use the OpenG SMTP VIs.
07-12-2011 09:29 AM
Thank you for the reply. I found the SMTP examples as well but did not know if I'd be able to use that. The exchange server in Outlook is set up as ***.***.net rather than a smtp.****.***.
07-12-2011 09:41 AM
It does not matter what the name is. All that matters is that it accepts SMTP connections. Sometimes network admins may disable the SMTP interface for internal email. You need to talk to your network admin folks.
07-12-2011 09:42 AM
I'll do that. Thanks again!
09-12-2012 01:55 AM
Hi mltullos,
Were you able to do what you wanted? If so, what is the port number you are using? and Is SSL enabled?
I am also trying to do the same. Please share your experience.
09-13-2012 11:42 AM
Hi Elamaran,
The examples that smercurio_fc mentioned through a previous forum and in his example he posted are very helpful. Through those examples and other documentation at ni.com the port number should be from the server. Also, it looked to me like that example enables SSL by default.