[
http://jira.qos.ch/browse/LBCLASSIC-323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12368#action_12368
]
Ceki Gulcu commented on LBCLASSIC-323:
--------------------------------------
Alex,
I have successfully sent an email using the following config file:
<configuration>
<!-- dump status message on the console as they arrive -->
<statusListener class="ch.qos.logback.core.status.OnConsoleStatusListener" />
<appender name="EMAIL" class="ch.qos.logback.classic.net.SMTPAppender">
<smtpHost>smtp.gmail.com</smtpHost>
<smtpPort>465</smtpPort>
<SSL>true</SSL>
<username>[email protected]</username>
<password>xxx</password>
<to>[email protected]</to>
<from>[email protected]</from>
<subject>Testing %logger{20} - %m</subject>
<layout class="ch.qos.logback.classic.PatternLayout">
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1}-%msg%n</pattern>
</layout>
</appender>
<root level="info">
<appender-ref ref="EMAIL" />
</root>
</configuration>
I am using the EMail sample application to send the messages. See [1].
[1] http://logback.qos.ch/xref/chapters/appenders/mail/EMail.html
> SMTPAppender does not send messages
> -----------------------------------
>
> Key: LBCLASSIC-323
> URL: http://jira.qos.ch/browse/LBCLASSIC-323
> Project: logback-classic
> Issue Type: Bug
> Components: appender
> Affects Versions: 1.0.0
> Environment: JDK 1.5
> FreeBSD 7.0-STABLE FreeBSD 7.0-STABLE #0: Tue Apr 15 17:37:45 CEST 2008 amd64
> Java(TM) 2 Runtime Environment, Standard Edition (build diablo-1.5.0-b01)
> Java HotSpot(TM) 64-Bit Server VM (build diablo-1.5.0_07-b01, mixed mode)
> Reporter: Lutz Huehnken
> Assignee: Logback dev list
>
> After upgrading from 0.9.30 to 1.0.0, the
> ch.qos.logback.classic.net.SMTPAppender seizes to work. It just does not send
> any messages anymore.
> This behaviour has apparently been observed by others as well and is also
> described in this thread:
> http://old.nabble.com/SMTPAppender-mail-not-sent-%28logback-1.0.0%2C-JDK-1.5%29-to33164248.html
> It resumes working when - while making no other changes - logback is
> downgraded to version 0.9.30
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
logback-dev mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-dev