Hi everyone,
Is there any way by which we can send email through ARIS Script?
I can see "javax.mail" jar file ARIS lib files. Can we use the classes in that?
Thanks,
Amol Patil
Sure
/************************************************************* * Mail CLASS * * This class provides methods to send emails via javax.mail * * @Version: 1.1.1 * *************************************************************/ /* * This class provides methods to send emails via javax.mail * * @param server The SMTP server address as DNS or IP */ function Mail( server ) { /** * SMTP server */ var m_server = server; /** * send a email with a attachment to a list of recipients * * @param sReply - a email address * @param arrRecepients - array of recipients * @param sSubject - the email subject * @param sContent - the email body content * @param sAttachmentFileName - filename and path to the attachment * * @return void */ this.send = function(sReply, arrRecepients, sSubject, sContent, sAttachmentFileName) { var i = 0; var props = new java.util.Properties(); var instSession = Packages.javax.mail.Session.getInstance(props, null); var smtpTransport = instSession.getTransport("smtp"); props.setProperty("mail.smtp.auth", "false"); smtpTransport.connect(m_server, "", ""); var adrReply = new Packages.javax.mail.internet.InternetAddress(sReply); // Receiver Address: var arrAdrRecipients = new Array(); for (i = 0; i < arrRecepients.length; i++) { arrAdrRecipients.push(new Packages.javax.mail.internet.InternetAddress(arrRecepients[i])); } // do not change var msg = new Packages.javax.mail.internet.MimeMessage(instSession); msg.setFrom(adrReply); // insert proper date msg.setSentDate(new Date()); // do not change msg.setReplyTo(new Array(adrReply)); msg.setRecipients(Packages.javax.mail.internet.MimeMessage.RecipientType.TO, arrAdrRecipients); // "Subject": Subject of the mail msg.setSubject(sSubject, "UTF-8"); messagePart = new Packages.javax.mail.internet.MimeBodyPart(); messagePart.setText(sContent); multipart = new Packages.javax.mail.internet.MimeMultipart(); multipart.addBodyPart(messagePart); if (!sAttachmentFileName.equals("")) { attachmentPart = new Packages.javax.mail.internet.MimeBodyPart(); var fds = new Packages.javax.activation.FileDataSource(sAttachmentFileName); attachmentPart.setDataHandler(new Packages.javax.activation.DataHandler(fds)); attachmentPart.setFileName(fds.getName()); multipart.addBodyPart(attachmentPart); } msg.setContent(multipart); // do not change smtpTransport.sendMessage(msg, arrAdrRecipients); smtpTransport.close(); } }
Hello,
I want to use my Gmail SMTP to send my email, but I keep being block by some "Unable to convert connection to SSL" error. Here is the code I use, thanks to you and different website :
var props = new java.util.Properties();
props.put("mail.smtp.host", "smtp.gmail.com");
props.put("mail.smtp.socketFactory.port", "465");
props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.port", "465");
props.put("mail.smtp.ssl.trust", "smtp.gmail.com");
var instSession = Packages.javax.mail.Session.getDefaultInstance(props, null);
var smtpTransport = instSession.getTransport("smtp");
smtpTransport.connect(m_server, user, psw);
HI Jens Heylmann,
i am getting the below error,
Error
Error running script:
Script: Mail Orchestration, line 72
class com.sun.mail.handlers.text_plain cannot be cast to class javax.activation.DataContentHandIer
(com.sun.mail.handlers.text_plain is in unnamed module of loader org.springframework.boot.Ioader.LaunchedURLCIassLoader
x
0689604dg; javax.activation.DataContentHandIer is in unnamed module of loader com.aris.modeIing.common.serverremoteapi.cscommon.webreportbasejavascript.AUserJarCIassLoader
0482 e897f) " src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABCwAAADpCAIAAABgGjHTAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAADbXSURBVHhe7d0PcCRZfdjxnt27A4MNBK7uxmVIRfKe0HEO/05UocM2RLrFPq0iwGUurrFCcFUskaxVPrRLCBWiolS2qYRdgS3LZkUqCVWDKjlSZZB3dQm7K8AG5AQdGBvMWOg0SQDX6ICYv4e529Xk9/5MT0/3656ekdQazXw/pdrtefP69evXb3r6N6//5KrVqgcAAAAAWTlh/wcAAACATBCEAAAAAMgUQQgAAACATBGEAAAAAMgUQQgAAACATBGEAAAAAMgUQQgAAACATBGEAAAAAMhU+GGFb3zjL//Zn23YFzG++tWv2ykAAAAAaFE4CHnBC37qS1/68rOe9Sz7OkIyEIQAAAAAvSCXy21ubt577732dYxHH310aGgoFFkkUEHIKz/813/5rR/ahBg/eMtL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ygvyj9XEna+vivT6i3vr5cf+aaEIu/5t6+6++ZNkyetqikBANBzCEIAoLcEByKa/v2FHvcYvXfQT7nrJ2/3vG9u/41Mm/K8v/7oRy9VPC9/3+9O3O5nS/lniwAA9BiCEADoLf5F4Wn+qv/rj2Y/73kvfdXbf1KNXNx8+esvvtTbWfvI73xNX6euC6zuPf7by5/e8by+B15nsqX/0wUAAHoOQQgA9BZ/FCLl34f/8N1nrnhvmXvH/7n0r//vr79w58oHXv2Rb5i3TIHq6pCv/cmixCre7W+Z+6VfUmFIQwkJf6YEAECvye3u7tpJAECXeqqa+/7N3Nve8/ur733XP/gX/+6pGzftG0fq1ltO/u8/fPvEW9/1nrf9xo+frN6aIyYBgF7BSAgA9Jbg2VBH/mfrBADoMQQhANBbQidEHe2frRMAoMcQhABAb6lGIoGj+hO2TgCAHkMQAgC9RR/8dwpbJwBAjyEIAYCekLP/d+LpWH7dAAA9giAEAHpAtZrz7BG/HPl3zp+h6ua/AAD0AIIQAOh+uZx3sjbcsPsf33nryROd8Cc1MVWSukkNAQC9g+eEAED326t6T1ZzKx/70898/i9W3/sum9oBJt76rvte9uLCa3/utlz1BHEIAPQMghAA6H5Vz7ux593InfivH/vTT33uCza1A/zsy1/yT177c7dU9245wZUhANBDCEIAoCfsVb2bVW8vd6J64mQ1d0JeHu1FGOoUrOpebu/mieqeTDMMAgA9hSAEAHqFRB1ViUP0v0d/EUa1KlU4oStCAAIAvYYgBAAAAECmuDsWAAAAgEwRhAAAAADIFEEIAAAAgEwRhAAAAADIFEEIAAAAgEwRhAAAAADIFEEIAAAAgEwRhAAAAADIFEEIAAAAgEwRhAAAAADIVO6hhx6ykwAAAMfBE0888fSnP10mbty48b3vfc8kBj3rWc86efLkt771rZ/4iZ8wKZLNnwZwxDzv/wMvjQQvgGmUlgAAAABJRU5ErkJggg==" style="height:155px; width:711px"> Could you please help me to resolve this issue.
Hi Sunil Kumar
I have the same problem as you have described.
"
class com.sun.mail.handlers.text_plain cannot be cast to class javax.activation.DataContentHandler
(com.sun.mail.handlers.text_plain is in unnamed module of loader org.springframework.boot.loader.LaunchedURLClassLoader
@768b970c; javax.activation.DataContentHandler is in unnamed module of loader com.aris.modeling.common.serverremoteapi.cscommon.webreportbase.javascript.AUserJarClassLoader
"
Did you resolved it ?
Thanks
Gildas
HI Jens Heylmann,
i am getting the below error, Could you please help me to resolve this issue.
Hello Jens,
This is gr8. It is working with some small tweak. I was doing the same, and was stuck in Authenticating through server. I was using Authenticator object. Using "smtpTransport.connect()" helped me a lot.
And then i set some more properties to use SSL
props.put("mail.smtp.port", "465");
props.put("mail.smtp.socketFactory.port", "465");
props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
props.put("mail.smtp.socketFactory.fallback", "false");
Thanks again for your valueable help.
Regards,
Amol Patil
Hello, everybody!
Tell me please, can ARIS accept mail letters and analyze them (text and attachments) using a script? For example, some users send mail to ARIS adress. These letters contain an attached Excel document with data to be used in ARIS. ARIS receives the letter data, analyzes it and takes the data from the attachment for further use.