Results 1 to 2 of 2
  1. #1
    mperemsky is offline Member
    Join Date
    Apr 2011
    Posts
    5
    Rep Power
    0

    Default No provider for SMTP - cannot resolve

    I have written an application that uses javamail to send a message to users. It works on my local machine, but when I copy it to the hosted linux (redhat) site I get a "No prover for SMTP - cannot resolve" message when I call the sendMessage() method.

    Ihave debug turned on and it shows the following, which lists smtp as a transport protocol.


    Java Code:
    DEBUG: Providers Listed By Protocol: {
    imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], 
    imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], 
    smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], 
    pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], 
    pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], 
    smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
    I have the mail.jar file included in my war file. When deployed the jar file exists in /webapps/MyApp/WEB-INF/lib/mail.jar.

    My loaded properties file values that are set are:

    Java Code:
    mail.transport.protocol=SMTP
    mail.smtp.from=Mike
    mail.smtp.starttls.enable=true
    mail.debug=true
    mail.store.protocol=POP3
    mail.host=mail.xxx.com
    mail.smtp.connectiontimeout=30000
    mail.smtp.ehlo=
    mail.smtp.user=trx@xxx.com
    mail.from=Mike
    mail.smtp.dsn.notify=
    mail.smtp.socketFactory.port=
    mail.smtp.sendpartial=true
    mail.smtp.timeout=60000
    mail.user=trx@xxx.com
    mail.smtp.port=587
    mail.smtp.auth=true
    mail.smtp.host=mail.xxx.com
    I have looked at this all day and cannot determine why this is not working.

  2. #2
    mperemsky is offline Member
    Join Date
    Apr 2011
    Posts
    5
    Rep Power
    0

    Default

    Arg, I hate unix. I had to change the case of the property values to lowercase (pop3, smtp) and change the "from" values to email addresses.

Similar Threads

  1. Replies: 2
    Last Post: 08-24-2011, 05:32 PM
  2. Replies: 2
    Last Post: 01-28-2011, 07:22 PM
  3. JNDI/DNS Service Provider and Syslog
    By Jotta in forum Networking
    Replies: 0
    Last Post: 04-19-2010, 11:05 PM
  4. Error: JCE cannot authenticate the provider BC
    By mariabg in forum Java Servlet
    Replies: 0
    Last Post: 02-26-2009, 12:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •