0 Replies Latest reply: Jul 8, 2008 11:15 PM by 843844 RSS

    How do i configure mail session in Weblogic 8.1

    843844
      Hi all,

      I am having dead end here,
      I have tried to configure a mail session in weblogic 8.1

      I have created a mail service (service/mail) in weblogic console, with the JNDI named mail/MailFolderClientSession.
      and properties like this :
      mail.store.protocol=pop3
      mail.user=test@wiyanto
      mail.transport.protocol=smtp
      mail.smtp.host=11.2.145.64
      mail.debug=true
      mail.from=test@wiyanto
      mail.host=11.2.145.64
      mail.smtp.auth=false
      mail.smtp.user=test@wiyanto
      mail.pop3.host=11.2.145.64

      wiyanto is my computer name
      11.2.145.64 is my IP address
      and I used Imail as my mail server


      in the weblogic-ejb-jar.xml i have added this :
      <weblogic-enterprise-bean>
           <ejb-name>Email</ejb-name>
           <reference-descriptor>
                <resource-description>
                     <res-ref-name>EmailSession</res-ref-name>
                     <jndi-name>mail/MailFolderClientSession</jndi-name>
                </resource-description>
           </reference-descriptor>
           <jndi-name>ejb/EmailHome</jndi-name>
      </weblogic-enterprise-bean>


      and I have set the mail session to run automatically when i start the weblogic server.
      but i still encounter this :
      MailFolderClient: MessagingException in connectToMailStore [javax.mail.AuthenticationFailedException]
      MailFolderClient: login: Connection to mailstore failed


      Please tell me what is wrong with this, b'cause I met dead end on every search on google :(
      Any suggestion is more than welcome.