05-20-2011 05:57 PM
Hi All,
I've been using the DSC module for a while now and I'm just starting to take a look at the alarms and events fuctionality. Who can tell me the easiest way to send out email and text messages when a DSC alarm has been triggered? I haven't found any examples for this but I'm hoping it a pretty straightforward process.
Thanks!
Mike
05-23-2011 04:14 PM
The VIs you need are located in Data Communication>>Protocols>>SMTP Email. It's pretty straight forward to send an email (I just used the small version for sending to a single recipient). You can also use these VIs to send a text message to someone's phone, you just use their phone number and their carrier as the email address. For example, to send a text message to 555-555-5555 who has Verizon, use the email address 5555555555@vtext.com. You can do a Google search to find out what email addresses are for the other carriers.
05-24-2011 03:27 PM
Hey Tom! Thanks for pointing out those VIs. I've still got a couple of questions but hopefully I'll be able to send emails and texts soon.
As far as sending an email goes. I've attached an example that should send myself an email to my gmail account. However, it's not working. I'm wondering if I'm using the correct value for [mail server]?
When I run the attached code I get an error, "Error 16502 occurred at 502 5.5.1 Unrecognized command. n6sm5200813pbc.57" It seems like gmail requires authentication and these SMTP VIs don't support that?
I'm in a government building, so perhaps I should talk to IT about what to use for [mail server]?
Any more thoughts would be helpful.
Thanks,
Mike
05-24-2011 04:04 PM
I tried using one of these VIs just now, and I had a problem using my email provider's SMTP server (I got an error saying that sender requires authentication). However, when I use the SMTP server of my network provider, it went through fine. I was sending an email to my personal gmail account, so that wasn't the issue. I'm guessing the issue is with IT, so check with them. They may need to give you're account special permissions.
05-24-2011 06:17 PM
Hello again,
Well I got to the point where I can send an email but only to certain addresses. The rest of the time (as in when trying to send to a txt message address) I get an error which says that relaying is not allowed "Error 16550 occurred at SMTP: 550 5.7.1 Relaying not allowed"
I guess it's back to IT for help with this one?
07-16-2012 06:36 AM
I've got the same problem...did you get a fix for this?
07-16-2012 03:26 PM
Yeah I just ended up using the VI found on this thread to send emails using gmail.
https://decibel.ni.com/content/docs/DOC-2401#comment-22237
-Mike