logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Virajith KHP" <khp.viraj...@gmail.com>
Subject Re: Problem in using SMTPAppender with gmail
Date Sat, 20 Sep 2008 11:23:35 GMT
 Hello,

So I put the code,
* System.setProperty(" mail.transport.protocol","smtps");
 System.setProperty(" mail.smtps.host","smtp.google.com");
 System.setProperty(" mail.smtps.auth","true");**
 **System.setProperty("mail.smtp.starttls.enable", "true"); *

inside the main method of my application. But now I'm getting a different
error as follows,

log4j:ERROR Error occured while sending e-mail notification.
javax.mail.MessagingException: 454 TLS not available due to temporary reason

        at
com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:1363)
        at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:1223)
        at
com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:378)
        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
org.apache.log4j.net.SMTPAppender.sendBuffer(SMTPAppender.java:330)
        at org.apache.log4j.net.SMTPAppender.append(SMTPAppender.java:215)
        at
org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
        at
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
        at org.apache.log4j.Category.callAppenders(Category.java:206)
        at org.apache.log4j.Category.forcedLog(Category.java:391)
        at org.apache.log4j.Category.error(Category.java:305)
        at
miracle.server.presentation.customcomponents.SplashFrame.retrieveSplashImage(SplashFrame.java:53)
        at
miracle.server.presentation.customcomponents.SplashFrame.<init>(SplashFrame.java:29)
        at miracle.server.logic.common.AppManager$1.run(AppManager.java:41)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown
Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

Do you have any idea on that issue?

Regards,
Virajith

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message