EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only
Expand all | Collapse all

SendMail (send function fails)

  • 1.  SendMail (send function fails)

    Posted 10/17/08 04:19 AM

    When executing eMailPage.jsp SendMail java class ends with the following error:
    17/10/08 10.18.36:828 CEST 0000001d ServletWrappe A SRVE0242I: JSFEAR [/JSF] [/eMailPage.jsp]: Inizializzazione riuscita.
    17/10/08 10.18.41:641 CEST 0000001e SystemErr R javax.mail.SendFailedException: Sending failed;
    nested exception is:
    class javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS command first. d4sm3797351fga.5
    at javax.mail.Transport.send0(_Transport.java:218_)
    class javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS command first.
    at javax.mail.Transport.send0(_Transport.java:218_)
    at javax.mail.Transport.send(_Transport.java:80_)
    .........................
    Attachments:
    SendMail.java
    eMailPage.jsp
    paoloc


  • 2.  Re: SendMail (send function fails)

    Posted 10/17/08 05:02 AM
    Hi,

    we've got an EGL sample application that implements a very basic Contact Us page using the Websphere Application Server mail resources - see here for the Java implementation details.

    The main advantage is that you can take the mail configuration out of your application and manage it through Websphere Admin Console.

    I've just got to get the application tidied up a little and add some notes, then I'll upload it for you.

    Andy
    SystemAdmin


  • 3.  Re: SendMail (send function fails)

    Posted 10/17/08 06:12 AM
    Hi,

    sample application has been attached as a Project Interchange File. There is a README file in the Web Content directory of ContactUsDemo web application. All runtime libraries have been removed from WEB-INF/lib to reduce the size of the file.

    I've also submitted the application for inclusion in the Resources Library.

    Hope this helps you, please let me know how you get on.

    Thanks.
    Attachments:
    ContactUsDemo.zip
    SystemAdmin


  • 4.  Re: SendMail (send function fails)

    Posted 10/17/08 11:01 AM

    Error on executing ContactUs.jsp


    17/10/08 17.21.05:750 CEST 0000001d SystemOut O Development State Manager: View modified - discarding restored view.
    17/10/08 17.21.06:719 CEST 0000001d ServletWrappe A {size:2}SRVE0253I: JSFEAR [/JSF] [/ContactUs.jsp]: Destroy riuscito.

    17/10/08 17.21.06:719 CEST 0000001d ServletWrappe A {size:2}SRVE0242I
    : JSFEAR [/JSF] [/ContactUs.jsp]: Inizializzazione riuscita.

    17/10/08 17.21.34:344 CEST 0000001e SystemOut O Unable to find resource allocated to JNDI name : uk.co.morpheus.egl.mail.toaddress(Name "comp/env/uk.co.morpheus.egl.mail.toaddress" not found in context "java:".)
    17/10/08 17.21.34:344 CEST 0000001e SystemOut O EGL0100E Si e verificato un errore non gestito. Errore: java.lang.NullPointerException.
    EGL0002I L'errore si e verificato nel programma ContactUs durante l'elaborazione della funzione getToAddress.


    paoloc


  • 5.  Re: SendMail (send function fails)

    Posted 10/23/08 03:53 AM
    Paolo,

    did you check this section in the README file?

    We are storing the destination email address as a web application environment entry. Switch to the Source view of yourWeb Deployment Descriptor and look for the entry:        <env-entry>                <env-entry-name>uk.co.morpheus.egl.mail.toaddress</env-entry-name>                <env-entry-type>java.lang.String</env-entry-type>                <env-entry-value>andy@morpheus.co.uk</env-entry-value>        </env-entry>


    As well as changing the value of this entry, you can also change its name, but then you'll need to update your JSF Handler

        // we store the to address as a web application parameter         // in an <env-entry> tag in the web.xml descriptor         private function getToAddress() returns (string)                toAddress string;                toAddress = NamingLibrary.lookup("uk.co.morpheus.egl.mail.toaddress").toString();                return (toAddress);             end
    SystemAdmin


  • 6.  Re: SendMail (send function fails)

    Posted 01/07/09 12:28 PM

    Hi,
    another problem with contactUs project: the class contactUs is not generated. What is wrong in the prjects properties?
    Java source signals error. Why?
    Attachments:
    Image.bmp
    paoloc


  • 7.  Re: SendMail (send function fails)

    Posted 01/08/09 03:39 AM
    Hi,

    what is the actual problem being reported for the Java source? If you open the "Problems" view, that should give you the detail of the error.

    It looks as if the ContactUs class is generated - you have ContactUs.egl in the jsfhandlers EGL package and the corresponding ContactUs*.java files in the jsfhandlers Java package.

    Andy
    SystemAdmin


  • 8.  Re: SendMail (send function fails)

    Posted 01/08/09 04:59 AM

    Hi Andy,
    no the java class is not generated. The folder:ContactUsDemo\WebContent\Web-Inf\classes is empty!
    I have the following error in web.xml:
    <resource-ref id="ResourceRef_1213791867223">
    <description>
    Reference to Contact Us mail session resource</description>
    <res-ref-name>mail/contact-us</res-ref-name>
    <res-type>javax.mail.Session</res-type> <------ Varning error connection interrupted</b>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    and 3 errors unintellegible:
    In ContacUsDemo the libraryes are missing:
    'C:\IBM\SDP70Shared\plugins\org.eclipse.emf.ecore_2.2.3.v200705141058.jar'
    'C:\IBM\SDP70Shared\plugins\org.eclipse.emf.ecore.sdo_2.2.1.v200705141058.jar'
    'C:\IBM\SDP70Shared\plugins\org.eclipse.emf.ecore.xmi_2.2.3.v200705141058.jar'
    How to import these libraryes?
    RAD7.1 plugins is installed in the following folder e:\ProgrammiIBM\Rational\SPD70SHARED\plugins
    paoloc


  • 9.  Re: SendMail (send function fails)

    Posted 01/08/09 05:14 AM
    Hi,

    ah! I see what you mean, the Java class is not compiled. We tend to say that the .egl to .java part is generation and the .java to .class is compilation. The reason the .class file is not being generated is because of the error flagged on the Java Source directory. Once we resolve that, your classes will compile.

    So the Java compilation error looks like the problem with those EMF JAR files. I'm not entirely sure why they're there and will check. But it should be easy enough to resolve. You could use the Java build path option in the project properties to remove the offending ones - they will be flagged as not found.

    However, it's probably easier for the moment to simply update the project properties directly. If you use WIndows Explorer to locate your project directory you should find a file called .classpath. Open this and you will see some entries that look like this:

    <classpathentry kind="lib" path="C:/IBM/SDP70Shared/plugins/org.eclipse.emf.ecore.sdo_2.2.1.v200705141058.jar"/>
    <classpathentry kind="lib" path="C:/IBM/SDP70Shared/plugins/org.eclipse.emf.commonj.sdo_2.1.0.v200705141058.jar"/>
    <classpathentry kind="lib" path="C:/IBM/SDP70Shared/plugins/org.eclipse.emf.ecore.xmi_2.2.3.v200705141058.jar"/>
    <classpathentry kind="lib" path="C:/IBM/SDP70Shared/plugins/org.eclipse.emf.ecore_2.2.3.v200705141058.jar"/>
    <classpathentry kind="lib" path="C:/IBM/SDP70Shared/plugins/org.eclipse.emf.common_2.2.1.v200705141058.jar"/>


    Find and replace C:/IBM/SDP70Shared/plugins with E:/ProgrammiIBM/Rational/SPD70SHARED/plugins.

    Save the file, go back to RBD and refresh your project.

    I'm not sure about the web.xml error. Let's get your Java problem fixed first.

    Andy
    SystemAdmin


  • 10.  Re: SendMail (send function fails)

    Posted 01/08/09 05:22 AM
    Hi,

    I just had another look at the application and you don't actually need those libraries. Not sure how they got there. The only clue is that I did migrate the
    project from an earlier version before testing and packaging up. Obviously it would work on my PC as all those files exist.

    You can safely remove the problem files from the Java Build Path. (Right click on project, Properties->Java Build Path->Libraries).

    My apologies.

    Andy
    SystemAdmin


  • 11.  Re: SendMail (send function fails)

    Posted 01/08/09 10:33 AM

    Hi Andy,
    I have removed all the org.eclipse.emf...... etc. from my project (see attachment to look listing)
    Now I have the errors:
    MailHandler_Lib ContactUsDemo/src/uk/co/morpheus/egl/mail MailHandler_Lib.java riga 57 1231428355000 190702
    11 times Impossible to resolvere javax.mail ContactUsDemo/src/uk/co/morpheus/egl/mail MailHandler_Lib.java riga 29 1231428355000 190698
    and 8 times Impossible to resolvere javax.mail in un tipo ContactUsDemo/src/uk/co/morpheus/egl/mail MailHandler_Lib.java riga 21 1231428355000 190695


    Attachments:
    Image.bmp
    paoloc


  • 12.  Re: SendMail (send function fails)

    Posted 01/08/09 10:42 AM
    Hi,

    the listing shows the EMF files still there; but as you're getting different errors I'm guessing that's just an old screenshot. Can you send me a copy of the .project and .classpath files from your project.

    The other thing you might like to check is to confirm that you've set Websphere as your target server runtime. Right-click on project, Properties->Targeted Runtimes and one of the Websphere Application Servers should be selected.

    Andy
    SystemAdmin


  • 13.  Re: SendMail (send function fails)

    Posted 01/08/09 11:27 AM
    I are working with WAS 6.0
    Attachments:
    .project
    .classpath
    paoloc


  • 14.  Re: SendMail (send function fails)

    Posted 01/08/09 11:35 AM
    OK, your classpath shows that you've got the "Apache Tomcat v5.5" runtime configured. It doesn't have the javax.mail resources.

    Easiest way to fix this is to right click on Project, select Properties->Java Build Path->Libraries. Select Add Library... and Server runtime. Follow the dialogs to add Websphere Application Server v6.0.

    Andy
    SystemAdmin


  • 15.  Re: SendMail (send function fails)

    Posted 01/08/09 12:08 PM

    Thanks Andy,
    another error on executing:
    Error 500: java.lang.LinkageError: LinkageError while defining class: jsfhandlers.ContactUs Could not be defined due to: jsfhandlers/ContactUs (Unsupported major.minor version 49.0) This is often caused by having a class defined at multiple locations within the classloader hierarchy. Other potential causes include compiling against an older or newer version of the class that has an incompatible method signature. Dumping the current context classloader hierarchy: ==> indicates defining classloader ==>[0] com.ibm.ws.classloader.CompoundClassLoader@1d88d461 Local ClassPath: E:\workspaceEGL\ContactUsDemo\WebContent\WEB-INF\classes;E:\workspaceEGL\ContactUsDemo\WebContent\WEB-INF\lib\commons-beanutils.jar;E:\workspaceEGL\ContactUsDemo\WebContent\WEB-INF\lib\commons-collections.jar;E:\workspaceEGL\ContactUsDemo\WebContent\WEB-INF\lib\commons-digester.jar;E:\workspaceEGL\ContactUsDemo\WebContent\WEB-INF\lib\fda7.jar;E:\workspaceEGL\ContactUsDemo\WebContent\WEB-INF\lib\icu4j_3_4_1.jar;E:\workspaceEGL\ContactUsDemo\WebContent\WEB-INF\lib\jsf-api.jar;E:\workspaceEGL\ContactUsDemo\WebContent\WEB-INF\lib\jsf-ibm.jar;E:\workspaceEGL\ContactUsDemo\WebContent\WEB-INF\lib\jsf-impl-messages.jar;E:\workspaceEGL\ContactUsDemo\WebContent\WEB-INF\lib\jsf-impl.jar;E:\workspaceEGL\ContactUsDemo\WebContent\WEB-INF\lib\jstl.jar;E:\workspaceEGL\ContactUsDemo\WebContent\WEB-INF\lib\standard.jar;E:\workspaceEGL\ContactUsDemo\WebContent Delegation Mode: PARENT_FIRST [1] com.ibm.ws.classloader.JarClassLoader@498570337 Local Classpath: Delegation mode: PARENT_FIRST [2] com.ibm.ws.classloader.ProtectionClassLoader@2ec61461 [3] com.ibm.ws.bootstrap.ExtClassLoader@3bf99463 [4] sun.misc.Launcher$AppClassLoader@3beb1463 [5] sun.misc.Launcher$ExtClassLoader@3bef1463 ---Original exception--- java.lang.UnsupportedClassVersionError: jsfhandlers/ContactUs (Unsupported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code)) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled Code)) at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:518) at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code)) at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java(Compiled Code)) at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code)) at java.beans.Beans.instantiate(Beans.java:202) at java.beans.Beans.instantiate(Beans.java:63) at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:204) at com.sun.faces.application.ApplicationImpl.createAndMaybeStoreManagedBeans(ApplicationImpl.java:940) at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:84) at com.ibm.faces.databind.SelectItemsVarResolver.resolveVariable(SelectItemsVarResolver.java:38) at com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:125) at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243) at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:156) at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:137) at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:124) at com.ibm.faces.renderkit.html_extended.ScriptCollectorRenderer.encodeBegin(ScriptCollectorRenderer.java:71) at com.ibm.faces.renderkit.DefaultAjaxRenderer.encodeBegin(DefaultAjaxRenderer.java:64) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:725) at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:572) at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:459) at com.ibm.faces.taglib.html_extended.ScriptCollectorTag.doStartTag(ScriptCollectorTag.java:110) at com.ibm._jsp._ContactUs._jspx_meth_hx_scriptCollector_0(_ContactUs.java:256) at com.ibm._jsp._ContactUs._jspx_meth_f_view_0(_ContactUs.java:291) at com.ibm._jsp._ContactUs._jspService(_ContactUs.java:84) at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:91) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:762) at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121) at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:204) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:334) at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:325) at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:254) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:762) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3071) at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:236) at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1958) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:89) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952) at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1471) --- end Original exception----
    Attachments:
    Image.bmp
    paoloc


  • 16.  Re: SendMail (send function fails)

    Posted 01/08/09 12:19 PM
    Oh dear :-)

    This time you've got a mismatch in Java versions. A couple of things to check. In right-click, Properties and so on.

    Targeted Runtimes - make sure Websphere version 6 is selected
    Java Compiler, make sure project specific settings is set on and set your compiler compliance level to 1.4.
    Project Facets - make sure the Java version is set to 1.4.

    Now select Project->Clean->Clean All Projects from the menu and that will recompile all the Java classes.

    If I get a chance tomorrow, I'll see if I can create a Project Interchange file with these settings all done for you in case of any problems.

    Andy
    SystemAdmin


  • 17.  Re: SendMail (send function fails)

    Posted 01/08/09 12:55 PM

    Hi,
    Java was 5.0 now changed to 1.4 the jsp runs but can't send any mail with following console messages:
    08/01/09 18.55.07:109 CET 0000002b SystemOut O DEBUG: JavaMail version 1.3.1
    08/01/09 18.55.07:109 CET 0000002b SystemOut O DEBUG: java.io.FileNotFoundException: E:\ProgrammiIBM\Rational\SDP70\runtimes\base_v6\java\jre\lib\javamail.providers (Impossibile trovare il file specificato)
    08/01/09 18.55.07:125 CET 0000002b SystemOut O DEBUG: !anyLoaded
    08/01/09 18.55.07:125 CET 0000002b SystemOut O DEBUG: not loading resource: /META-INF/javamail.providers
    08/01/09 18.55.07:125 CET 0000002b SystemOut O DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
    08/01/09 18.55.07:125 CET 0000002b SystemOut O DEBUG: Tables of loaded providers
    08/01/09 18.55.07:141 CET 0000002b SystemOut O DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPTransport=javax.mail.Providerhttp://TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc, com.sun.mail.imap.IMAPStore=javax.mail.Providerhttp://STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc, com.sun.mail.pop3.POP3Store=javax.mail.Providerhttp://STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc}
    08/01/09 18.55.07:141 CET 0000002b SystemOut O DEBUG: Providers Listed By Protocol: {imap=javax.mail.Providerhttp://STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc, pop3=javax.mail.Providerhttp://STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc, smtp=javax.mail.Providerhttp://TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc}
    08/01/09 18.55.07:141 CET 0000002b SystemOut O DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
    08/01/09 18.55.07:156 CET 0000002b SystemOut O DEBUG: !anyLoaded
    08/01/09 18.55.07:156 CET 0000002b SystemOut O DEBUG: not loading resource: /META-INF/javamail.address.map
    08/01/09 18.55.07:156 CET 0000002b SystemOut O DEBUG: java.io.FileNotFoundException: E:\ProgrammiIBM\Rational\SDP70\runtimes\base_v6\java\jre\lib\javamail.address.map (Impossibile trovare il file specificato)
    08/01/09 18.55.07:156 CET 0000002b SystemOut O *** In SessionFactory.getObjectInstance,
    08/01/09 18.55.07:156 CET 0000002b SystemOut O The default SessionAuthenticator is based on:
    08/01/09 18.55.07:156 CET 0000002b SystemOut O store_user = casemie
    08/01/09 18.55.07:156 CET 0000002b SystemOut O store_pw = ****
    08/01/09 18.55.07:156 CET 0000002b SystemOut O *** In SessionFactory.getObjectInstance, PasswordAuthentication is set for transport, with
    08/01/09 18.55.07:156 CET 0000002b SystemOut O trans_user = casemie
    08/01/09 18.55.07:156 CET 0000002b SystemOut O trans_pw = ****
    08/01/09 18.55.07:156 CET 0000002b SystemOut O trans_url = smtp://casemie@smtp.gmail.com
    08/01/09 18.55.07:156 CET 0000002b SystemOut O *** In SessionFactory.getObjectInstance, parameters in the new session:
    08/01/09 18.55.07:156 CET 0000002b SystemOut O mail.store.protocol="pop3"
    08/01/09 18.55.07:156 CET 0000002b SystemOut O mail.transport.protocol="smtp"
    08/01/09 18.55.07:156 CET 0000002b SystemOut O mail.pop3.user="casemie"
    08/01/09 18.55.07:156 CET 0000002b SystemOut O mail.smtp.host="smtp.gmail.com"
    08/01/09 18.55.07:156 CET 0000002b SystemOut O mail.debug="true"
    08/01/09 18.55.07:156 CET 0000002b SystemOut O mail.from="casemie@gmail.com"
    08/01/09 18.55.07:156 CET 0000002b SystemOut O mail.smtp.class="com.sun.mail.smtp.SMTPTransport"
    08/01/09 18.55.07:156 CET 0000002b SystemOut O mail.smtp.user="casemie"
    08/01/09 18.55.07:156 CET 0000002b SystemOut O mail.imap.class="com.sun.mail.imap.IMAPStore"
    08/01/09 18.55.07:156 CET 0000002b SystemOut O mail.pop3.host="gmail.com"
    08/01/09 18.55.07:156 CET 0000002b SystemOut O mail.pop3.class="com.sun.mail.pop3.POP3Store"
    08/01/09 18.55.07:172 CET 0000002b SystemOut O DEBUG: mail.smtp.class property exists and points to com.sun.mail.smtp.SMTPTransport
    08/01/09 18.55.07:172 CET 0000002b SystemOut O DEBUG SMTP: useEhlo true, useAuth false
    08/01/09 18.55.07:172 CET 0000002b SystemOut O DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 25
    08/01/09 18.55.07:297 CET 0000002b SystemOut O 220 mx.google.com ESMTP 3sm42200fge.37
    08/01/09 18.55.07:297 CET 0000002b SystemOut O DEBUG SMTP: connected to host "smtp.gmail.com", port: 25
    08/01/09 18.55.07:297 CET 0000002b SystemOut O EHLO server226
    08/01/09 18.55.07:359 CET 0000002b SystemOut O 250-mx.google.com at your service, http://87.22.34.4
    250-SIZE 35651584
    250-8BITMIME
    250-STARTTLS
    250 ENHANCEDSTATUSCODES
    08/01/09 18.55.07:359 CET 0000002b SystemOut O DEBUG SMTP: Found extension "SIZE", arg "35651584"
    08/01/09 18.55.07:359 CET 0000002b SystemOut O DEBUG SMTP: Found extension "8BITMIME", arg ""
    08/01/09 18.55.07:359 CET 0000002b SystemOut O DEBUG SMTP: Found extension "STARTTLS", arg ""
    08/01/09 18.55.07:359 CET 0000002b SystemOut O DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
    08/01/09 18.55.07:359 CET 0000002b SystemOut O DEBUG SMTP: use8bit false
    08/01/09 18.55.07:359 CET 0000002b SystemOut O MAIL FROM:<casemie@gmail.com>
    08/01/09 18.55.07:422 CET 0000002b SystemOut O 530 5.7.0 Must issue a STARTTLS command first. 3sm42200fge.37
    08/01/09 18.55.07:422 CET 0000002b SystemOut O QUIT
    08/01/09 18.55.07:422 CET 0000002b jsf E com.sun.faces.context.FacesContextImpl addMessage Adding Message[sourceId=<<NONE>>,summary=Unable to send email message : Sending failed;
    nested exception is:
    class javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS command first. 3sm42200fge.37
    paoloc


  • 18.  Re: SendMail (send function fails)

    Posted 01/09/09 03:20 AM
    OK, the good news is that the EGL side of your application is up and running and accessing the mail resources, well done. The issue you're seeing now is a problem in the communications between your application and the mail server.

    The problem is that gmail requires a secure session to allow you to send emails. The sample was built for a simple SMTP server behind a firewall and so on, not a public email server. The error is reasonable as you wouldn't want anyone just connecting to your mail account and triggering lots of emails through it. If you do a search on that error you'll see a lot of people having similar kinds of problems using gmail in this way.

    The first thing we can try is to add a couple of properties to your Mail Session declaration in Websphere. If you open the admin console and navigate to the mail session you created you should see a "Custom Properties" option. Open this and add the following properties:

    <table class="jive-wiki-table">
    <tr>
    <th>Property name</th>
    <th>Value</th>
    </tr>
    <tr>
    <td>mail.smtp.socketFactory.class</td>
    <td>javax.net.ssl.SSLSocketFactory</td>
    </tr>
    <tr>
    <td>mail.smtp.starttls.enable</td>
    <td>true</td>
    </tr>
    </table>


    Make sure you restart WAS after this and give it another go.

    Andy
    SystemAdmin


  • 19.  Re: SendMail (send function fails)

    Posted 01/09/09 05:34 AM

    Hi Andy,
    We are near the solution. 2 new errors at the end of console messages:
    09/01/09 11.26.25:344 CET 0000001e SystemOut O DEBUG: JavaMail version 1.3.1
    09/01/09 11.26.25:344 CET 0000001e SystemOut O DEBUG: java.io.FileNotFoundException: E:\ProgrammiIBM\Rational\SDP70\runtimes\base_v6\java\jre\lib\javamail.providers (Impossibile trovare il file specificato)
    09/01/09 11.26.25:359 CET 0000001e SystemOut O DEBUG: !anyLoaded
    09/01/09 11.26.25:359 CET 0000001e SystemOut O DEBUG: not loading resource: /META-INF/javamail.providers
    09/01/09 11.26.25:359 CET 0000001e SystemOut O DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
    09/01/09 11.26.25:359 CET 0000001e SystemOut O DEBUG: Tables of loaded providers
    09/01/09 11.26.25:359 CET 0000001e SystemOut O DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPTransport=javax.mail.Providerhttp://TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc, com.sun.mail.imap.IMAPStore=javax.mail.Providerhttp://STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc, com.sun.mail.pop3.POP3Store=javax.mail.Providerhttp://STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc}
    09/01/09 11.26.25:359 CET 0000001e SystemOut O DEBUG: Providers Listed By Protocol: {imap=javax.mail.Providerhttp://STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc, pop3=javax.mail.Providerhttp://STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc, smtp=javax.mail.Providerhttp://TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc}
    09/01/09 11.26.25:359 CET 0000001e SystemOut O DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
    09/01/09 11.26.25:375 CET 0000001e SystemOut O DEBUG: !anyLoaded
    09/01/09 11.26.25:375 CET 0000001e SystemOut O DEBUG: not loading resource: /META-INF/javamail.address.map
    09/01/09 11.26.25:375 CET 0000001e SystemOut O DEBUG: java.io.FileNotFoundException: E:\ProgrammiIBM\Rational\SDP70\runtimes\base_v6\java\jre\lib\javamail.address.map (Impossibile trovare il file specificato)
    09/01/09 11.26.25:375 CET 0000001e SystemOut O *** In SessionFactory.getObjectInstance,
    09/01/09 11.26.25:375 CET 0000001e SystemOut O The default SessionAuthenticator is based on:
    09/01/09 11.26.25:375 CET 0000001e SystemOut O store_user = casemie
    09/01/09 11.26.25:391 CET 0000001e SystemOut O store_pw = ****
    09/01/09 11.26.25:391 CET 0000001e SystemOut O *** In SessionFactory.getObjectInstance, PasswordAuthentication is set for transport, with
    09/01/09 11.26.25:391 CET 0000001e SystemOut O trans_user = casemie
    09/01/09 11.26.25:391 CET 0000001e SystemOut O trans_pw = ****
    09/01/09 11.26.25:391 CET 0000001e SystemOut O trans_url = smtp://casemie@smtp.gmail.com
    09/01/09 11.26.25:391 CET 0000001e SystemOut O *** In SessionFactory.getObjectInstance, parameters in the new session:
    09/01/09 11.26.25:391 CET 0000001e SystemOut O mail.store.protocol="pop3"
    09/01/09 11.26.25:391 CET 0000001e SystemOut O mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
    09/01/09 11.26.25:391 CET 0000001e SystemOut O mail.transport.protocol="smtp"
    09/01/09 11.26.25:391 CET 0000001e SystemOut O mail.pop3.user="casemie"
    09/01/09 11.26.25:391 CET 0000001e SystemOut O mail.smtp.host="smtp.gmail.com"
    09/01/09 11.26.25:391 CET 0000001e SystemOut O mail.debug="true"
    09/01/09 11.26.25:391 CET 0000001e SystemOut O mail.from="casemie@gmail.com"
    09/01/09 11.26.25:391 CET 0000001e SystemOut O mail.smtp.starttls.enable="true"
    09/01/09 11.26.25:391 CET 0000001e SystemOut O mail.smtp.class="com.sun.mail.smtp.SMTPTransport"
    09/01/09 11.26.25:391 CET 0000001e SystemOut O mail.smtp.user="casemie"
    09/01/09 11.26.25:391 CET 0000001e SystemOut O mail.imap.class="com.sun.mail.imap.IMAPStore"
    09/01/09 11.26.25:391 CET 0000001e SystemOut O mail.pop3.host="gmail.com"
    09/01/09 11.26.25:391 CET 0000001e SystemOut O mail.pop3.class="com.sun.mail.pop3.POP3Store"
    09/01/09 11.26.25:391 CET 0000001e SystemOut O DEBUG: mail.smtp.class property exists and points to com.sun.mail.smtp.SMTPTransport
    09/01/09 11.26.25:391 CET 0000001e SystemOut O DEBUG SMTP: useEhlo true, useAuth false
    09/01/09 11.26.25:391 CET 0000001e SystemOut O DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 25
    09/01/09 11.26.25:516 CET 0000001e SystemOut O DEBUG SMTP: exception reading response: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
    09/01/09 11.26.25:516 CET 0000001e jsf E com.sun.faces.context.FacesContextImpl addMessage Adding Message[sourceId=<<NONE>>,summary=Unable to send email message : Sending failed;
    nested exception is:
    class javax.mail.MessagingException: Exception reading response;
    nested exception is:
    javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?)
    In problems I have the following error: Java compilator don't correspond with Facet version of the project. I have compiled with version 1.4 and version 5.0 but the error persist. And the folder Java Source is red marked.


    Attachments:
    Image.bmp
    paoloc


  • 20.  Re: SendMail (send function fails)

    Posted 01/09/09 05:44 AM
    Getting better :-)

    You've probably got the wrong port for the SMTP connection, 25 is the standard port. Try 465, which is the SMTP over SSL port. Also check gmail to see if it gives you details on using SMTP - you normally find details on how to set up standard email clients, this should have the correct information.

    You'll need to go through your project properties and check that all the Java version settings are correct e.g. in Java Compiler, Project Facets, Server runtime and so on. I think you had these settings OK otherwise you wouldn't have got to where you are now given the problems you had yesterday.

    Andy
    SystemAdmin


  • 21.  Re: SendMail (send function fails)

    Posted 01/09/09 06:31 AM
    Yes gmails port is 465. How to change : on WAS,Java or where?
    paoloc


  • 22.  Re: SendMail (send function fails)

    Posted 01/09/09 06:38 AM
    Ah yes, it's another custom property with the name "mail.smtp.port". You can set it in the same way as you did with the others.
    SystemAdmin


  • 23.  Re: SendMail (send function fails)

    Posted 01/09/09 09:36 AM

    Hi Andy,
    thanks for the help.You are a very friend. I have changed port to 465. Now the mail server requires Authentication. How? In the program? in WAS?...?
    Here the latest row of the console:
    09/01/09 15.32.53:828 CET 00000024 SystemOut O mail.smtp.user="casemie"
    09/01/09 15.32.53:828 CET 00000024 SystemOut O mail.imap.class="com.sun.mail.imap.IMAPStore"
    09/01/09 15.32.53:828 CET 00000024 SystemOut O mail.pop3.host="gmail.com"
    09/01/09 15.32.53:828 CET 00000024 SystemOut O mail.pop3.class="com.sun.mail.pop3.POP3Store"
    09/01/09 15.32.53:938 CET 00000024 SystemOut O DEBUG: mail.smtp.class property exists and points to com.sun.mail.smtp.SMTPTransport
    09/01/09 15.32.53:953 CET 00000024 SystemOut O DEBUG SMTP: useEhlo true, useAuth false
    09/01/09 15.32.53:953 CET 00000024 SystemOut O DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 465
    09/01/09 15.32.55:375 CET 00000024 SystemOut O 220 mx.google.com ESMTP l12sm14348407fgb.8
    09/01/09 15.32.55:375 CET 00000024 SystemOut O DEBUG SMTP: connected to host "smtp.gmail.com", port: 465
    09/01/09 15.32.55:375 CET 00000024 SystemOut O EHLO server226
    09/01/09 15.32.55:453 CET 00000024 SystemOut O 250-mx.google.com at your service, http://87.22.34.4
    250-SIZE 35651584
    250-8BITMIME
    250-AUTH LOGIN PLAIN
    250 ENHANCEDSTATUSCODES
    09/01/09 15.32.55:453 CET 00000024 SystemOut O DEBUG SMTP: Found extension "SIZE", arg "35651584"
    09/01/09 15.32.55:453 CET 00000024 SystemOut O DEBUG SMTP: Found extension "8BITMIME", arg ""
    09/01/09 15.32.55:453 CET 00000024 SystemOut O DEBUG SMTP: Found extension "AUTH", arg "LOGIN PLAIN"
    09/01/09 15.32.55:453 CET 00000024 SystemOut O DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
    09/01/09 15.32.55:453 CET 00000024 SystemOut O DEBUG SMTP: use8bit false
    09/01/09 15.32.55:453 CET 00000024 SystemOut O MAIL FROM:<dfd@dd.it>
    09/01/09 15.32.55:516 CET 00000024 SystemOut O 530-5.5.1 Authentication Required. Learn more at
    530 5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257 l12sm14348407fgb.8
    09/01/09 15.32.55:516 CET 00000024 SystemOut O QUIT
    09/01/09 15.32.55:547 CET 00000024 jsf E com.sun.faces.context.FacesContextImpl addMessage Adding Message[sourceId=<<NONE>>,summary=Unable to send email message : Sending failed;
    nested exception is:
    class javax.mail.MessagingException: 530-5.5.1 Authentication Required. Learn more at
    530 5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257 l12sm14348407fgb.8

    paoloc


  • 24.  Re: SendMail (send function fails)

    Posted 01/09/09 09:53 AM
    Ah! I thought it would have picked that up.

    It looks like you've added the Mail Transport user ID and password when you've created your Mail Session in the WAS admin console. I can see the values appearing in the trace output. Let's add another custom property, this time called "mail.smtp.auth" and set its value to true.

    Andy
    SystemAdmin


  • 25.  Re: SendMail (send function fails)

    Posted 01/09/09 10:30 AM

    YES,YES,YESSSSSSSSSSSSSSSSSSS !!!!!!
    ok thats work.
    Please another help: How can find instructions on WAS redbboks? on javaMail?
    Can You send me any URL?
    Bye bye and thanks twice paolo
    paoloc


  • 26.  Re: SendMail (send function fails)

    Posted 01/09/09 10:36 AM
    That's fantastic! Well done!

    Not sure what URLs you're after. The original resources I used for the WAS Mail Sessions were in the WAS InfoCenter and general knowledge of the Java Enterprise Edition specifications. The details on using JavaMail came from various resources including Sun's reference at http://java.sun.com/products/javamail/.

    Andy
    SystemAdmin


  • 27.  Re: SendMail (send function fails)

    Posted 01/10/09 10:13 AM

    I Andy,
    I trued to execute In the EGL course RBD-EGL-v71.ppt another jsp to send mail was name is sendMail.jsp.
    This jsp too ends in error for me. I think that the called java class SendMail.java is wrong.
    Have You any tips?
    paolo
    Attachments:
    sendMailPage.jsp
    sendMailPage.egl
    SendMail.java
    paoloc


  • 28.  Re: SendMail (send function fails)

    Posted 06/02/09 04:18 AM

    Hi Andy!
    This function id my death!
    After many days I have taked again the application.
    The error is now:
    Unable to send email message : Sending failed; nested exception is: class javax.mail.MessagingException: Could not connect to SMTP host: smtp@gmail.com, port: 465; nested exception is: java.net.SocketException: Operation timed out: connect:could be due to invalid address .
    The port 465 is not opened by the server. why?
    Attachments:
    Image.bmp
    log.txt
    paoloc


  • 29.  Re: SendMail (send function fails)

    Posted 06/02/09 04:36 AM
    Hi,

    I think you've got the host name wrong - if you look back through the earlier discussions you were using smtp.gmail.com but now you're using smtp@gmail.com.

    Andy
    SystemAdmin


  • 30.  Re: SendMail (send function fails)

    Posted 06/02/09 06:18 AM

    OH Yes.
    2 bew problems:
    1) importing the project from EGL 7.1 to EGL 7.5 an error occours (see attached image)
    2) How to change runtime server from WAS 6.1 to WAS 6.0?


    Attachments:
    Image.bmp
    paoloc


  • 31.  Re: SendMail (send function fails)

    Posted 06/02/09 06:25 AM
    1) I think the parameter needs an IN modifier, obviously wasn't required in the previous version. Should be something like constructor( emailAddress string IN)

    2) You change the Server runtime through the project properties. I think in v7.5 updating the Project Facets should do the trick.

    Andy
    SystemAdmin


  • 32.  Re: SendMail (send function fails)

    Posted 06/02/09 09:57 AM

    Tanks Andy but i have another problem with the console message:
    ....................
    02/06/09 16.16.22:843 CEST 00000023 ServletWrappe I SRVE0242I: ContactUsDemoEAR [/ContactUsDemo] [/ContactUs.jsp]: Inizializzazione riuscita.
    02/06/09 16.16.38:984 CEST 00000023 SystemOut O DEBUG: JavaMail version 1.3.1
    02/06/09 16.16.39:000 CEST 00000023 SystemOut O DEBUG: java.io.FileNotFoundException: E:\ProgrammiIBM\Rational\SDP70\runtimes\base_v61\java\jre\lib\javamail.providers (Impossibile trovare il file specificato.)
    02/06/09 16.16.39:015 CEST 00000023 SystemOut O DEBUG: !anyLoaded
    02/06/09 16.16.39:015 CEST 00000023 SystemOut O DEBUG: not loading resource: /META-INF/javamail.providers
    02/06/09 16.16.39:015 CEST 00000023 SystemOut O DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
    02/06/09 16.16.39:015 CEST 00000023 SystemOut O DEBUG: Tables of loaded providers
    02/06/09 16.16.39:015 CEST 00000023 SystemOut O DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPTransport=javax.mail.Providerhttp://TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc, com.sun.mail.imap.IMAPStore=javax.mail.Providerhttp://STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc, com.sun.mail.pop3.POP3Store=javax.mail.Providerhttp://STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc}
    02/06/09 16.16.39:015 CEST 00000023 SystemOut O DEBUG: Providers Listed By Protocol: {imap=javax.mail.Providerhttp://STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc, pop3=javax.mail.Providerhttp://STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc, smtp=javax.mail.Providerhttp://TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc}
    02/06/09 16.16.39:015 CEST 00000023 SystemOut O DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
    02/06/09 16.16.39:031 CEST 00000023 SystemOut O DEBUG: !anyLoaded
    02/06/09 16.16.39:031 CEST 00000023 SystemOut O DEBUG: not loading resource: /META-INF/javamail.address.map
    02/06/09 16.16.39:031 CEST 00000023 SystemOut O DEBUG: java.io.FileNotFoundException: E:\ProgrammiIBM\Rational\SDP70\runtimes\base_v61\java\jre\lib\javamail.address.map (Impossibile trovare il file specificato.)
    02/06/09 16.16.39:031 CEST 00000023 SystemOut O *** In SessionFactory.getObjectInstance,
    02/06/09 16.16.39:031 CEST 00000023 SystemOut O The default SessionAuthenticator is based on:
    02/06/09 16.16.39:031 CEST 00000023 SystemOut O store_user = casemie
    02/06/09 16.16.39:031 CEST 00000023 SystemOut O store_pw = ****
    02/06/09 16.16.39:062 CEST 00000023 SystemOut O *** In SessionFactory.getObjectInstance, PasswordAuthentication is set for transport, with
    02/06/09 16.16.39:062 CEST 00000023 SystemOut O trans_user = casemie
    02/06/09 16.16.39:062 CEST 00000023 SystemOut O trans_pw = ****
    02/06/09 16.16.39:062 CEST 00000023 SystemOut O trans_url = smtp://casemie@smtp.gmail.com
    02/06/09 16.16.39:062 CEST 00000023 SystemOut O *** In SessionFactory.getObjectInstance, parameters in the new session:
    02/06/09 16.16.39:062 CEST 00000023 SystemOut O mail.store.protocol="pop3"
    02/06/09 16.16.39:062 CEST 00000023 SystemOut O mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
    02/06/09 16.16.39:062 CEST 00000023 SystemOut O mail.transport.protocol="smtp"
    02/06/09 16.16.39:062 CEST 00000023 SystemOut O mail.pop3.user="casemie"
    02/06/09 16.16.39:062 CEST 00000023 SystemOut O mail.smtp.host="smtp.gmail.com"
    02/06/09 16.16.39:062 CEST 00000023 SystemOut O mail.debug="true"
    02/06/09 16.16.39:062 CEST 00000023 SystemOut O mail.from="casemie@gmail.com"
    02/06/09 16.16.39:062 CEST 00000023 SystemOut O mail.smtp.starttls.enable="true"
    02/06/09 16.16.39:062 CEST 00000023 SystemOut O mail.smtp.port="465"
    02/06/09 16.16.39:062 CEST 00000023 SystemOut O mail.smtp.class="com.sun.mail.smtp.SMTPTransport"
    02/06/09 16.16.39:062 CEST 00000023 SystemOut O mail.smtp.auth="true"
    02/06/09 16.16.39:062 CEST 00000023 SystemOut O mail.smtp.user="casemie"
    02/06/09 16.16.39:062 CEST 00000023 SystemOut O mail.imap.class="com.sun.mail.imap.IMAPStore"
    02/06/09 16.16.39:062 CEST 00000023 SystemOut O mail.pop3.host="gmail.com"
    02/06/09 16.16.39:062 CEST 00000023 SystemOut O mail.pop3.class="com.sun.mail.pop3.POP3Store"
    02/06/09 16.16.39:125 CEST 00000023 SystemOut O DEBUG: mail.smtp.class property exists and points to com.sun.mail.smtp.SMTPTransport
    02/06/09 16.16.39:125 CEST 00000023 SystemOut O DEBUG SMTP: useEhlo true, useAuth true
    02/06/09 16.16.39:125 CEST 00000023 SystemOut O DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 465
    02/06/09 16.16.40:609 CEST 00000023 SystemOut O
    02/06/09 16.16.40:609 CEST 00000023 SystemOut O CWPKI0022E: ERRORE HANDSHAKE SSL: un firmatario con SubjectDN "CN=smtp.gmail.com, O=Google Inc, L=Mountain View, ST=California, C=US" e stato inviato dall'host di destinazione: porta "null:null". Potrebbe essere necessario aggiungere il firmatario all'archivio di trust locale "E:/ProgrammiIBM/Rational/SDP70/runtimes/base_v61/profiles/AppSrv01/config/cells/server226Node03Cell/nodes/server226Node03/trust.p12" presente nell'alias di configurazione SSL "NodeDefaultSSLSettings" caricato dal file di configurazione SSL "security.xml". Il messaggio esteso relativo all'handshake SSL e: "No trusted certificate found".
    02/06/09 16.16.40:609 CEST 00000023 SystemOut O
    02/06/09 16.16.40:609 CEST 00000023 SystemOut O DEBUG SMTP: exception reading response: javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: No trusted certificate found
    paoloc


  • 33.  Re: SendMail (send function fails)

    Posted 06/03/09 10:35 AM
    Hi Andy!
    have You any tips to solve my latest problem?
    paolo
    paoloc


  • 34.  Re: SendMail (send function fails)

    Posted 06/06/09 05:00 AM

    Hi Andy, to day when I started RDB the program works well so You can close this problem (this is one of the secret of RDB).
    I have another question that is:
    how to change dinamically at run time (= reading this value fom the DB) the entry andy@morpheus.co.uk in:
    <env-entry>
    <env-entry-name>uk.co.morpheus.egl.mail._toaddress_</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>andy@morpheus.co._uk_</env-entry-value>
    </env-entry>
    how to do?
    paolo
    paoloc


  • 35.  Re: SendMail (send function fails)

    Posted 09/14/16 11:05 AM

    Hello Paolo.

    We are in need of expert help people like you ..

    We have seen that worked on projects managing sending e-mails .. at EGL.

    Could contribute their experience .. helping us with informations?

    I'm waiting for news

    Thank you

    Osvaldo Menezes

    ojomenezes


  • 36.  Re: SendMail (send function fails)



  • 37.  Re: SendMail (send function fails)

    Posted 09/28/16 01:29 PM

    Dear Marcel-D.

    His help was of great value.


    I have tremendous difficulty in solving the problem Proxy.
     

    You could help us by checking the files attached, and contribute any tips?
     

    Appreciate.
     

    Osvaldo Menezes

    ojomenezes


  • 38.  Re: SendMail (send function fails)

    Posted 09/30/16 07:48 AM

    Hi,

    sorry but I'm not a rest service expert. (we are using dedicated services)

    maybe someone of the IBM RBD Team could take a look at your problem if they have some time. @TedZhou b502c184-dc57-4211-9947-7e979b5603e5@HuangJiYong 4ea89e0e-f102-4cee-83b7-27212c7e3fd0

     

    Kind Regards!

     

    Marcel-D


  • 39.  Re: SendMail (send function fails)

    Posted 10/11/16 11:04 PM

    Hi , Do you use egl rest services or a third-party rest services?

    If EmailServices is egl rest services. you need use binding or configure dd file to bind the services.

    if you us third party rest services, you can use restbinding :

     

    Here is the overview of how to access different types of  services:

    http://www.ibm.com/support/knowledgecenter/en/SSMQ79_9.5.1/com.ibm.egl.pg.doc/topics/pegl_serv_accessing.html

     

    I suggest you using service binding in deployment descriptor .

    Bin.


  • 40.  Re: SendMail (send function fails)

    Posted 09/27/16 10:44 AM

    Cattaruzza greetings.

    We are picking up the EGL for sending e-mail, and we have seen that you have been through these disorders.

    We tried to rescue the examples set files in developersWorks site without success.

    You could help us with your experience? How to send e-mail via EGL?

    We try to use the "javax" REST, but we have problems in EGL RUI PROXY ..

    Thank you very much in advance.

    Osvaldo Menezes

    ojomenezes


  • 41.  Re: SendMail (send function fails)

    Posted 09/30/16 11:25 AM

    Hi Osvaldo,

    Watching your print screen, show error code EGL1539E, An exception occurred while communicating with the service.

    Are you checked the authentication part or maybe your firewall is blocking something?

    Arakaki