HI: I'm trying to use send mail action, but I have the following error:
[root@plrelautoapp10 logs]# cat /etc/redhat-releaseRed Hat Enterprise Linux Server release 7.3 (Maipo)
018-10-04 17:30:08,956 [job-65540-jobServer-65540-6:Send Email(P9402000.F9406000.E9407000):Send Email] INFO (com.nolio.platform.shared.datamodel.Action:383) - ------------------------About to execute action [Send Email(P9402000.F9406000.E9407000):Send Email]------------------------2018-10-04 17:30:13,964 [job-65540-jobServer-65540-6:Send Email(P9402000.F9406000.E9407000):Send Email] ERROR (com.nolio.platform.shared.datamodel.Action:129) - Failed to send mailjavax.mail.MessagingException: [EOF] at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:1481) at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1512) at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1054) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:634) at javax.mail.Transport.send0(Transport.java:189) at javax.mail.Transport.send(Transport.java:118) at com.nolio.platform.shared.utils.EmailUtils.send(EmailUtils.java:192) at com.nolio.platform.shared.executables.actions.SendEmailAction.execute(SendEmailAction.java:119) at com.nolio.platform.shared.datamodel.ActionExecutionState.localExecution(ActionExecutionState.java:385) at com.nolio.platform.shared.datamodel.ActionExecutionState.access$500(ActionExecutionState.java:46) at com.nolio.platform.shared.datamodel.ActionExecutionState$2.execAction(ActionExecutionState.java:132) at com.nolio.platform.shared.datamodel.ActionExecutionState.exec(ActionExecutionState.java:402) at com.nolio.platform.shared.datamodel.Action.run(Action.java:229) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at com.nolio.platform.shared.flowcontrol.LocalFlowController$JobBoundThreadFactory$1.run(LocalFlowController.java:804) at java.lang.Thread.run(Thread.java:748)2018-10-04 17:30:13,965 [job-65540-jobServer-65540-6:Send Email(P9402000.F9406000.E9407000):Send Email] INFO (com.nolio.platform.shared.datamodel.Action:386) - ------------------------Finished action [Send Email(P9402000.F9406000.E9407000):Send Email] result [false, Failed to send email. Please make sure SMTP settings are correct.<br>Reason: [EOF]]------------------------
It looks like the username field has a port number. That probably needs to be changed to a valid username field for it to authenticate with the SMTP server. If that doesn't work then another option might be to try it with a gmail account just to see it work and maybe some of the error messages if you change some values.
I think the problem is somewhere in the input values. And which input values are *really* required will depend on how your smtp server has been configured. I know that I use a smtp server that is configured to only allow emails sent from certain workstations. So I needed to get my specific hostname on a list in order to use that mail server. Not sure if yours is setup similarly. But things like this exist. I've also setup test smtp servers too and having access (or someone with access) to their log files to see their perspective and get their guidance in which fields should be specified is very helpful.
Hi, the issue was found in the smtp server configuration. Once the admin group reconfigured it, I was able to send mails.
Hi, I'm checking the configuration with the SMTP admin group. I'll share the results ASAP.
Did you review and try Gregg's suggestion?
If you still have the problem, please share your attempt and result.