web stats
Mirth Community - View Single Post - How to generate an alert
View Single Post
  #2  
Old 10-29-2009, 01:06 PM
albertosaez albertosaez is offline
 
Join Date: Sep 2006
Location: Valladolid, Spain
Posts: 842
albertosaez is an unknown quantity at this point
Default

They are built-in Mirth functions:

To send an alert:

alerts.sendAlert('message');

To send an email:

var smtpConn = SMTPConnectionFactory.createSMTPConnection();
smtpConn.send('to', 'cc', 'from', 'subject', 'body');
Reply With Quote