logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Re: Problem in using SMTPAppender with gmail
Date Sat, 20 Sep 2008 13:48:51 GMT

On Sep 20, 2008, at 6:23 AM, Virajith KHP wrote:

> 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)

If the protocol specification had been effective, the trace back  
should show a different class (I think SMTPSSLTransport).  Your code  
snippet has a leading space before mail in the first three lines.   
That likely causes those lines to be ineffective and only the starttls  
is effective.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message