SMTP error

0
Hi. I have a Mendix server running on a virtual machine with windows XP installed. When I start the console everything seems to be ok but I am not able to send any e-mail from this application. In testing and development environments everything works fine. My email host is 'smtp.gmail.com' and I'm using the port 465. I also have configured that it must use SSL (true). The error that I receive is concerned to the host server. What could be the reason for this? UPDATE I have a microflow that calls the microflow 'SendEmailMessage' from the AdvMail Module. The microflow is the following: The error(message( that I get is the one from this microflow: The configuration of the console is the following: The application works perfectly well when I'm running on the Modeler but here in production it doesn't work. I don't see any mistake and as I already posted, I can send e-mails from Thunderbird with the same configuration. SECOND UPDATE After removing the custom handler error, I just get a simple error message on the screen. Looking in the log file I found this: 2011-09-27 16:13:25.618 ERROR - Connector: An error has occurred while handling the request. [User 'monarc@gmail.com' with roles 'User, Organizer'] 2011-09-27 16:13:25.618 ERROR Connectorcom.mendix.core.CoreException: Exception occurred in action 'Microflow [MyFirstModule.RequestAccess]', all database changes executed by this action were rolled back at com.mendix.core.actionmanagement.CoreAction.d(SourceFile:553) Caused by: com.mendix.core.CoreException: Exception occurred in microflow 'MyFirstModule.RequestAccess' for activity 'Call 'ContactOrganizer'', all database changes executed by this microflow were rolled back at kM.b(SourceFile:252) Caused by: com.mendix.core.CoreException: Exception occurred in microflow 'MyFirstModule.ContactOrganizer' for activity 'Send mail to the Organizer ', all database changes executed by this microflow were rolled back at kM.b(SourceFile:252) Caused by: com.mendix.core.CoreException: Exception occurred in microflow 'MyFirstModule.SendEmail' for activity 'Call 'SendEmailMessage'', all database changes executed by this microflow were rolled back at kM.b(SourceFile:252) Caused by: com.mendix.core.CoreException: Exception occurred in microflow 'AdvEmail.SendEmailMessage' for activity 'Call 'SendEmailAttachments'', all database changes executed by this microflow were rolled back at kM.b(SourceFile:252) Caused by: com.mendix.core.CoreException: Error sending email at jG.a(SourceFile:131) Caused by: javax.mail.MessagingException: Unknown SMTP host: 'smtp.gmail.com' at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1280) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370) at javax.mail.Service.connect(Service.java:297) at javax.mail.Service.connect(Service.java:156) at javax.mail.Service.connect(Service.java:105) at javax.mail.Transport.send0(Transport.java:168) at javax.mail.Transport.send(Transport.java:98) at jG.a(SourceFile:128) at com.mendix.modules.email.EmailModule.mail(SourceFile:165) at advemail.actions.SendEmailAttachments.executeAction(SendEmailAttachments.java:89) at advemail.actions.SendEmailAttachments.executeAction(SendEmailAttachments.java:23) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.execute(SourceFile:191) at hi.a(SourceFile:70) at kM.a(SourceFile:67) at eR.executeAction(SourceFile:96) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.executeSync(SourceFile:167) at is.a(SourceFile:71) at kM.a(SourceFile:67) at eR.executeAction(SourceFile:96) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.executeSync(SourceFile:167) at is.a(SourceFile:71) at kM.a(SourceFile:67) at eR.executeAction(SourceFile:96) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.executeSync(SourceFile:167) at is.a(SourceFile:71) at kM.a(SourceFile:67) at eR.executeAction(SourceFile:96) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.execute(SourceFile:191) at dB.execute(SourceFile:183) at ju.a(SourceFile:299) at ju.a(SourceFile:230) at ju.processRequest(SourceFile:174) at fF.a(SourceFile:71) at com.mendix.core.MxRuntime.processRequest(SourceFile:938) at com.mendix.m2ee.server.handler.RuntimeHandler.handle(RuntimeHandler.java:42) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) at org.eclipse.jetty.server.Server.handle(Server.java:334) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559) at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1007) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:747) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:209) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) at java.lang.Thread.run(Unknown Source) Caused by: java.net.UnknownHostException: 'smtp.gmail.com' at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232) at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189) at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1250) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370) at javax.mail.Service.connect(Service.java:297) at javax.mail.Service.connect(Service.java:156) at javax.mail.Service.connect(Service.java:105) at javax.mail.Transport.send0(Transport.java:168) at javax.mail.Transport.send(Transport.java:98) at jG.a(SourceFile:128) at com.mendix.modules.email.EmailModule.mail(SourceFile:165) at advemail.actions.SendEmailAttachments.executeAction(SendEmailAttachments.java:89) at advemail.actions.SendEmailAttachments.executeAction(SendEmailAttachments.java:23) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.execute(SourceFile:191) at hi.a(SourceFile:70) at kM.a(SourceFile:67) at eR.executeAction(SourceFile:96) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.executeSync(SourceFile:167) at is.a(SourceFile:71) at kM.a(SourceFile:67) at eR.executeAction(SourceFile:96) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.executeSync(SourceFile:167) at is.a(SourceFile:71) at kM.a(SourceFile:67) at eR.executeAction(SourceFile:96) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.executeSync(SourceFile:167) at is.a(SourceFile:71) at kM.a(SourceFile:67) at eR.executeAction(SourceFile:96) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.execute(SourceFile:191) at dB.execute(SourceFile:183) at ju.a(SourceFile:299) at ju.a(SourceFile:230) at ju.processRequest(SourceFile:174) at fF.a(SourceFile:71) at com.mendix.core.MxRuntime.processRequest(SourceFile:938) at com.mendix.m2ee.server.handler.RuntimeHandler.handle(RuntimeHandler.java:42) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) at org.eclipse.jetty.server.Server.handle(Server.java:334) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559) at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1007) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:747) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:209) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) at java.lang.Thread.run(Unknown Source) Additionally, I re-imported the E-mail module and it worked fine within the Modeler but it still doesn't work in Production. THIRD UPDATE I have also runned the application from the App Store called 'Public Profile' (that doesn't exist anymore or I couldn't find it) in a production environment and I got the same error: the smtp was unknown. I'm using the port 8081 as HTTP port, 8090 for the Server admin port, 1525 for Oracle database and the 465 for smtp (I already tried 587 and 25) but nothing seems to work in my application and the application from the app store.
asked
2 answers
0

Have you already seen this post: email is not being sent

answered
0

Unknown SMTP host: 'smtp.gmail.com'

Looks like the server could not be reached. Can you try pinging from your local server to that location?

answered