User Tools

Site Tools


sib:callers:smtpcaller

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
sib:callers:smtpcaller [2019/08/21 12:13]
hubbe
sib:callers:smtpcaller [2019/09/20 07:27] (current)
hubbe
Line 33: Line 33:
  html: "<​b>​HTML</​b>​ formatted default mail body"  html: "<​b>​HTML</​b>​ formatted default mail body"
  },  },
 + init: ( thisCaller )=>{},
  inputFormat:​ (topic, msg, cb)=>{  inputFormat:​ (topic, msg, cb)=>{
  cb(msg);  cb(msg);
Line 73: Line 74:
     * text: The default plaintext content of the email message     * text: The default plaintext content of the email message
     * html: The default HTML formatted mail body     * html: The default HTML formatted mail body
 +  * init(thisCaller):​ If defined this method is executed when the service is starting up as the last step of initialization. //​thisCaller//​ is a reference to the instance of the caller that does the method call.
   * inputFormat(topic,​ msg, callback, mysqlConnection):​ The method that is run on service activation. The original message is passed as the argument and the input value to the callback must be a JSON formatted message conforming to the SIB message standard. If the message is null when returning from inputFormat no action is taken by the caller.   * inputFormat(topic,​ msg, callback, mysqlConnection):​ The method that is run on service activation. The original message is passed as the argument and the input value to the callback must be a JSON formatted message conforming to the SIB message standard. If the message is null when returning from inputFormat no action is taken by the caller.
   * loggerCfg: A JSON Object defining what logger actions should be active for this service (see [[sib:​loggerConfiguraton|Logger Configuration]]   * loggerCfg: A JSON Object defining what logger actions should be active for this service (see [[sib:​loggerConfiguraton|Logger Configuration]]
sib/callers/smtpcaller.txt ยท Last modified: 2019/09/20 07:27 by hubbe