Hi , We observed connection refused error while sending the email.Currently we are trying to connect with smtp.gmail.com. Error Message: com.mendix.core.CoreException: com.mendix.core.CoreRuntimeException: com.mendix.core.CoreException: Error sending email at com.mendix.core.Core.execute(SourceFile:232) Caused by: com.mendix.core.CoreRuntimeException: com.mendix.core.CoreException: Error sending email at hC.b(SourceFile:218) Caused by: com.mendix.core.CoreException: Error sending email at advemail.mail.Sender.send(Sender.java:142) Caused by: java.security.AccessControlException: access denied ("java.net.SocketPermission" "smtp.google.com" "resolve") at java.security.AccessControlContext.checkPermission(AccessControlContext.java:372) at java.security.AccessController.checkPermission(AccessController.java:559) at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) at java.lang.SecurityManager.checkConnect(SecurityManager.java:1048) at java.net.InetAddress.getAllByName0(InetAddress.java:1231) at java.net.InetAddress.getAllByName(InetAddress.java:1155) at java.net.InetAddress.getAllByName(InetAddress.java:1091) at java.net.InetAddress.getByName(InetAddress.java:1041) at javax.mail.URLName.getHostAddress(URLName.java:473) at javax.mail.URLName.hashCode(URLName.java:449) at java.util.Hashtable.hash(Hashtable.java:262) at java.util.Hashtable.get(Hashtable.java:459) at javax.mail.Session.getPasswordAuthentication(Session.java:811)
asked
balasaidulu
2 answers
0
I assume you get this error when running in the cloud? Did you check local with cloud security on?
Otherwise you need to send a support ticket to open up the cloud.
Regards,
Ronald
answered
Ronald Catersels
0
Did you check the "Manage your own network settings?" checkbox? It seems as though you're getting a SocketPermission accesscontrolexception. The default settings in the cloud are to open all sockets to everywhere. The only way in which you would be able to get this exception is if you've checked that box.
You have two options:
uncheck it
add every network host
that you want to connect to (such as
smtp.gmail.com) to the exception
list. You can find the list right
under the checkbox.