Hello,
How to send email through Mec Mapper on prem?
I need to send some records based on specific condition
Using Java Classes (Java Mail)
Attach it to the mapping or upload to Custom Files (admin require in this case)-
You could do something like this
org.apache.commons.mail.HtmlEmail email = new org.apache.commons.mail.HtmlEmail();email.setHostName(smtpServer);email.setSmtpPort(Integer.parseInt(smtpPort));email.setFrom(smtpFrom);email.setSubject(subject);email.setHtmlMsg(body);email.send();
You cannot do this in a cloud environment. Use the ION mailer instead.
Hi Roy,
What do you mean exactly by "ION mailer" ? how should we orchestrate this mail sending based on specific conditions in the mec mapping ?
Of course, my concern is about cloud MT environments.
IDM should be used i
Another way to handle this in a Cloud Environment, if you feel IDM is not the right way, is to create your own REST API Site (i.e. .Net) internally and that has a API for E-Mail with input parameters/content.Then you can integrate this into ION like any other External API Site.I have done so with great success also for Mongoose applications for instance to send information directly to LOCAL System, SQL Instance etc.
You can call this 'ION API' using XTendM3 as a 'wrapper' for instance, so that this XTendM3 API is directly exposed to IEC.
If you work with ION, MEC will send the BOD through ION. In the dataflow you can start a workflow and send out a e-mail bases on values in the BOD. Don't know you specific use case, but you could also use ION taks instead of e-mail.
Here you can find some documentation about the ION mail functionalityhttps://docs.infor.com/ion/2022.x/en-us/iondeskceug_cloud_osm/default.html?helpcontent=lsm1436532176796.html
on-prem without ION I don't think you have many other options then sending it in the mec mapper
XTendM3 API's cannot be used in MEC if they call ION API...
Infor says it but i don't haved confirmed
I agree with You, The best email solution is always use REST API outside Infor env.