Skip to content
ebiiii edited this page Oct 21, 2014 · 1 revision

Email Processing Class

This virtual sensor implements an Email notification system for GSN.

Parameters:

  • receiver-email Email address of the recipient
  • sender-email Email address of the sender
  • mail-server URL for the email (SMTP) server
  • subject Subject of the email
  • message Email message
   <processing-class>
      <class-name>gsn.vsensor.EmailVirtualSensor</class-name>
      <init-params>
         <param name="receiver−email">john.connor@gmail.com</param>
         <param name="sender−email">admin@sensorinternet.com</param>
         <param name="mail−server">smtp.gmail.com</param>
         <param name="subject">Abnormal Temperature Detected</param>
         <param name="MESSAGE">Sensor 114 has a value of 100 C.</param>
      </init-params>
      ...
   </processing-class>
   ...
   <streams>
      <stream name="...">
         ...
      </stream>
      ...
   </streams>
Clone this wiki locally