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 sendMail().