07-27-2012 08:16 AM
I've recently just got a NI MyDaq and have started using Labview. I've made a simple program that sounds an alarm if the noise level is above a certain level or if one of the switches has been activated but I now am not able to figure out how to send an email msg if the alarm has been triggered. Please help, thank you.
07-27-2012 08:27 AM
Here's a VI that will probably help you out:
http://zone.ni.com/reference/en-XX/help/371361H-01/lvcomm/email_vis/SMTP Send
Cheers Marc
07-27-2012 08:33 AM
thanks for the quick reply.
ive used these VI's but i cant work out how i can make it send the msg if the alarm is triggered 😕
07-27-2012 08:44 AM
Did you also tried the example which is given in "SMTP Email Send Message VI"? Its quite good and usefull to test if you can connect to a smtp server. Cheers
07-27-2012 09:07 AM
i cant get it to send me a msg from the example files, im really confused, shouldnt the examples work straight away?
07-27-2012 09:12 AM
Well with all preconditions met they work straight away, this one needs a smtp server to work (as the whole vi needs). Did you had a connection with your smtp (email) server?
07-27-2012 09:15 AM
yha, wen i type it in and test and say it replied, the servers connects, not sure whats wrong
07-27-2012 09:56 AM
What error code do you get? What server are you using? Is it one that requires authentication? If you got the server name from your IT department, they can tell you.