Differences

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

Link to this comparison view

java_mail_setup [2016/09/22 02:35] (current)
Line 1: Line 1:
 +===== JavaMail & Twitter Setup=====
 +
 +You can send email or post twitter message from mScript when model executes to send alert or notification. Before you can use either of the notification mechanisms, you must configure them appropriately.
 +
 +
 +=== Configure Email Notification ===
 +//​TestOptimal//​ uses //​javaMail//​ to send emails. ​ Before you can use //​javaMail//,​ you must configure it in //​www/​MbtSvr/​config/​config.properties//​. Add or edit the following line:
 +
 +     ​javaMailHost=emailHost name
 +
 +Replace //emailHost name// with the host name of your smpt mail gateway.
 +
 +== Sending Email ==
 +Once //​javaMail//​ is configured, you can send email by calling mscript function {{http://​testoptimal.com/​javaDoc/​reference/​com/​webmbt/​plugin/​MbtScriptExecutor.html#​sendMail%28java.lang.String,​%20java.lang.String,​%20java.lang.String%29 | sendMail()}}.
 +
 +=== Configure Twitter Notification ===
 +
 +For details on configuring Twitter notification,​ please visit [[config| configure Twitter]].
 +
 +== Posting Twitter Message ==
 +You may also try  to send notification to your twitter account (beta feature):
 +  * {{http://​testoptimal.com/​javaDoc/​reference/​com/​webmbt/​plugin/​MbtScriptExecutor.html#​twitterGet%28java.lang.String%29 | twitterGet()}}
 +  * {{http://​testoptimal.com/​javaDoc/​reference/​com/​webmbt/​plugin/​MbtScriptExecutor.html#​twitterPost%28java.lang.String%29 | twitterPost()}}  ​
 +
  
Print/export
QR Code
QR Code java_mail_setup (generated for current page)