Page 1 of 1

[Solved] myStuff w/ triggered e-mails no longer works

PostPosted: Mon Jan 20, 2014 11:03 am
by bradrel
Hello,

I have been using the "myStuff Updated w/ triggered e-mails" to send emails to different email addresses depending on the type of alarm. Original thread is here: http://www.nutech.com/index.php?option=com_fireboard&Itemid=0&func=view&id=1349&catid=4&limit=6&limitstart=0

I updated to the latest version of AlarmDecoderGUI and it no longer works. The old version of mystuff.dll will not load in the new version of AlarmDecoderGUI. Using the latest version of mystuff.dll shows the following error when trying to send an email: !MS> Error sending alert: Object reference not set to an instance of an object

Here is my mystuff.config file:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 <!-- mail1 settings-->
    <mail_host>MY EMAIL HOST</mail_host>
    <mail_port>25</mail_port>

    <!-- if you need authorized user/pass -->
    <mail_user>MY AUTH EMAIL ADDRESS/mail_user>
    <mail_pass>MY AUTH EMAIL PASSWORD</mail_pass>
    <mail_enable_ssl>false</mail_enable_ssl>

    <!-- who was the mail from -->
    <mail_from>MY FROM ADDRESS/mail_from>

    <!-- who is the mail to?  One or two destinations-->
    <mail1_to>MY EMAIL ADDRESS FOR MAIL1 ALERTS/mail1_to>
    <mail2_to>MY EMAIL ADDRESS FOR MAIL2 ALERTS</mail2_to>

<!-- On/off switches for which messages are sent to which mail-->
<!-- Options are: mail1, mail2, both, none  (all lower case)-->
  <sendto_Initialize>mail1</sendto_Initialize>
  <sendto_Arm>mail1</sendto_Arm>
  <sendto_Disarm>mail1</sendto_Disarm>
  <sendto_AlarmBell>both</sendto_AlarmBell>
  <sendto_FireAlarm>both</sendto_FireAlarm>
  <sendto_AC>both</sendto_AC>
  <sendto_Chime>none</sendto_Chime>
  <sendto_SecretSensor>none</sendto_SecretSensor>

<!-- Secret Sensor name for instant message, spell sensor out (case sensitive) -->
  <secret_sensor_name>ALARM 06 WATER</secret_sensor_name>

</Configuration>


Any help is greatly appreciated.
Thanks
--
Brad

Re: myStuff w/ triggered e-mails no longer works

PostPosted: Mon Jan 20, 2014 11:33 am
by mathewss
Hay Brad.

Your mystuff has some custom mods I have not added to release yet. Did you get that mystuff from someone or compile it yourself or was it already compiled?

Recompiling is no problem and I can help but first we need to find the mystuff.cs file you are using.

Re
Sean M

Re: myStuff w/ triggered e-mails no longer works

PostPosted: Mon Jan 20, 2014 11:43 am
by bradrel
mathewss wrote:Hay Brad.

Your mystuff has some custom mods I have not added to release yet. Did you get that mystuff from someone or compile it yourself or was it already compiled?

Recompiling is no problem and I can help but first we need to find the mystuff.cs file you are using.

Re
Sean M


Hi Sean - I am going off memory here, but I believe I just downloaded the mystuff.dll from that old thread and then modified the config file.

Thanks
--
Brad

Re: myStuff w/ triggered e-mails no longer works

PostPosted: Mon Jan 20, 2014 11:48 am
by bradrel
bradrel wrote:
Hi Sean - I am going off memory here, but I believe I just downloaded the mystuff.dll from that old thread and then modified the config file.

Thanks
--
Brad


I take that back, I found a customized mystuff.cs in my old install directory that I may have used. I will PM it to you.

Thanks
--
Brad

Re: myStuff w/ triggered e-mails no longer works

PostPosted: Mon Jan 20, 2014 12:18 pm
by mathewss
Ok. I recompiled it and sent it your way. Let me know.

Re
Sean M

Re: myStuff w/ triggered e-mails no longer works

PostPosted: Mon Jan 20, 2014 12:41 pm
by bradrel
mathewss wrote:Ok. I recompiled it and sent it your way. Let me know.

Re
Sean M


Hi Sean - thanks for the file, unfortunately I still get the same message: !MS> Error sending alert: Object reference not set to an instance of an object

Re: myStuff w/ triggered e-mails no longer works

PostPosted: Mon Jan 20, 2014 12:45 pm
by mathewss
Could I get you to zip up your entire folder and send it to ad2usb@support.nutech.com. You can remove your user/pass data from the config before you send it that shoudl not effect my debugging.

Re
Sean M

Re: myStuff w/ triggered e-mails no longer works

PostPosted: Mon Jan 20, 2014 12:48 pm
by mathewss
scratch that. I can reproduce already. I will let you know.

Thanks
Sean M