New EmailTemplate in Mendix 5.1.1 - Java permission error

2
Hi all, I migrated an application from Mx 4.5.0 (with the old AdvMail module) to 4.7.2 and than to 5.1.1. In 5.1.1 I downloaded the newest EmailTemplate module. After the complete setup I still have one error, saying: Message Failed to send an email to: test@finaps.nl an error occured in the SendEmail java action Error message Permission denied: connect Triggered in MF IVK_CreateAndSendEmail Stacktrace com.mendix.core.CoreRuntimeException: com.mendix.core.CoreException: Unable to send email. at com.mendix.core.component.InternalCore.execute(SourceFile:272) Caused by: com.mendix.core.CoreException: Unable to send email. at com.mendix.core.actionmanagement.ActionManager.executeSync(SourceFile:217) Caused by: Unable to send email. at emailtemplate.mail.EmailModule.mail(EmailModule.java:134) Caused by: Sending the email to the following server failed : localhost:25 at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1401) at org.apache.commons.mail.Email.send(Email.java:1428) at emailtemplate.mail.Sender.send(Sender.java:101) at emailtemplate.mail.EmailModule.mail(EmailModule.java:132) at emailtemplate.actions.SendEmail.executeAction(SendEmail.java:133) at emailtemplate.actions.SendEmail.executeAction(SendEmail.java:25) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:53) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:271) at com.mendix.core.actionmanagement.ActionManager.executeSync(SourceFile:206) at com.mendix.core.component.InternalCore.execute(SourceFile:260) at com.mendix.io.execute(SourceFile:42) at com.mendix.iX.a(SourceFile:47) at com.mendix.iW.a(SourceFile:191) at com.mendix.iW.executeAction(SourceFile:152) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:53) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:271) at com.mendix.core.actionmanagement.ActionManager.executeSync(SourceFile:206) at com.mendix.core.component.InternalCore.executeSync(SourceFile:233) at com.mendix.modules.microflowengine.actions.SubMicroflowAction.execute(SourceFile:33) at com.mendix.iX.a(SourceFile:47) at com.mendix.iW.a(SourceFile:191) at com.mendix.iW.executeAction(SourceFile:152) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:53) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:271) at com.mendix.core.actionmanagement.ActionManager.executeSync(SourceFile:206) at com.mendix.core.component.InternalCore.execute(SourceFile:260) at com.mendix.jw.a(SourceFile:135) at com.mendix.pG.a(SourceFile:296) at com.mendix.pG$a.apply$mcI$sp(SourceFile:195) at com.mendix.pG$i.a(SourceFile:211) at com.mendix.pG$i.execute(SourceFile:208) at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(SourceFile:132) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:498) at akka.actor.ActorCell.invoke(ActorCell.scala:456) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:237) at akka.dispatch.Mailbox.run(Mailbox.scala:219) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Does any one has any clue on how to fix this?
asked
4 answers
1

Would you happen to have the "Manage your own network settings" checkbox checked? It's a setting in the cloud portal where you basically turn off all socketpermissions and have to allow them specifically. It's off by default.

You can find it under the "details" button of your test/accp/prod environment.

answered
1

You have to look at the new E-mail module with templates v4.1 module. Because they changed the libraries inside to be compatible with the standard cloud. Or are these errors with the new template app? Because then something else must be wrong. Custom or standard cloud?

Regards,

Ronald

[EDIT] Did you try to add a space as password? There has been a bug where if you left the field empty you would get an error like this one.

answered
1

I downloaded the v4.1 Email module with templates. The application is on the standard cloud. Trying to add a space as a password is not working as wel.

Any other ideas?

answered
1

That's it! I've used another account to send the emails from, and therefore I needed some old settings. Thanks for the help! :-)

answered