web stats
send email in javascript - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 04-15-2019, 12:56 PM
cory_cole cory_cole is offline
Mirth Guru
 
Join Date: Mar 2012
Posts: 1,172
cory_cole is on a distinguished road
Default send email in javascript

I think I just need an extra set of eyes to look at this. Everything is working but the email is not being sent. Tested the output from the logger and it is correct. There are no errors from the code. Tested an SMTP Sender channel to get the IP and Port correct. Does anybody see anything wrong???


var smtpConn = SMTPConnectionFactory.createSMTPConnection();
smtpConn.setHost('127.0.0.1');
smtpConn.setPort('25');
logger.info(smtpTo);
logger.info(smtpCC);
logger.info(smtpSubject);
logger.info(smtpBody);

smtpConn.send(smtpTo, smtpTo, 'mirthAlert@email.com', smtpSubject, smtpBody);
Reply With Quote
  #2  
Old 04-17-2019, 07:20 AM
cory_cole cory_cole is offline
Mirth Guru
 
Join Date: Mar 2012
Posts: 1,172
cory_cole is on a distinguished road
Default

I don't know if it is a Mirth thing or a local thing. It did not like mirthAlert@email.com. It works the mirthAlert but it has to have a valid .com email address.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 05:24 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation