LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how does the e-mail function work

We are running an executable that generates an e-mail report when an event occurs. The VI was created offsite as a student project; we do not have Labview on our site. The VI has an input field here we can add e-mail addresses to the report that is sent out. We have a problem in that we do not receive the reports but the editor of the VI does even though he is a great distance from our location. Our e-mail addresses do appear in the "to" field, rearranging the order makes no difference. We have had our mail server administrator watch the log on out SMTP server and it never sees that an e-mail was sent out. We are first wondering exactly how the report generator sends an e-mail, it obviously does not log into an SNTP server? Second we won
dered how to solve this problem, does the from address need to contain our domain name? We are working with the editor and he can implement any needed changes. Thank you
0 Kudos
Message 1 of 3
(2,621 Views)
I am assuming that the person who wrote the example is using the Internet Toolkit for LabVIEW that provides the ability to send emails. In this case, LabVIEW will need to connect to an SMTP server (that can be specified). One thing to watch out for is that the recipient input to the email VI is an array of strings. On your front panel you should see a control that accepts an array of strings as input unless the programmer did something in the code to parse through a single string of email addresses. Most likely if you are entering everything into one string it won't work properly - place each address in a separate element of the array. The syntax for the email addresses should be the normal name@company.com.
0 Kudos
Message 2 of 3
(2,621 Views)
Thank you Mark, we finally traced the problem down. The VI was configured to use the mail server at his (the developers) location. Like most servers (from what I have read) it has the relay function disabled to prevent spam generators from hijacking the server. Since the e-mail came over the Internet from a remote location, the mail server simply dropped any addresses not located within its own domain.

The fix was to add an input field that allows us to use our own mail sever. Since it is located within our domain, it accepts the e-mail from the application and sends it to all addresses listed without any trouble, thanks again
0 Kudos
Message 3 of 3
(2,621 Views)