Hi Chris,
On 1.06.2025 17:36, Christopher Schultz wrote:
> This is also very helpful. It sounds like I need a filter that simply
> does not pass anything (i.e. filters everything). That would cause the
> SmtpAppender to hold everything together. At the end (this is a
> scheduled p
Piotr,
On 6/1/25 4:47 AM, Piotr P. Karwasz wrote:
Hi Chris,
On 30.05.2025 20:23, Christopher Schultz wrote:
For my purposes, I need to be able to:
1. Attach custom headers to SMTP messages.
I did this by creating a custom subclass[1] of SMTPAppender that
overrides activateOptions and sets
Hi Chris,
On 30.05.2025 20:23, Christopher Schultz wrote:
> For my purposes, I need to be able to:
>
> 1. Attach custom headers to SMTP messages.
>
> I did this by creating a custom subclass[1] of SMTPAppender that
> overrides activateOptions and sets whatever headers
All,
A few years ago, I posted to this list with the subject "[log4j 1.x]
Batch-sending with SMTPAppender". I can't seem to find it on lists.a.o
for a reference. Sorry.
Anyhow, I'm really trying to make the switch to log4j2 but there are
just so many things that d
Hello,
I want to use SMTPAppender in the following way:
1) send e-mail only when the predefined number of errors are accumulated.
As far as I understand, I can achieve this via custom Evaluator class
2) If some predefined period of time passed and no e-main was sent so far
(because the
; wrote:
>
>> All,
>>
>> I've got an SMTPAppender logging errors, etc. and I'd like to remove the
>> exceptions from the log messages. Is there a good way to do that?
>>
>> Remember: log4j 1.3.x (for now)
>>
>> I happen to already be using
Log4j 1.3? The last version of 1.x was 1.2.17 which is EOL.
On 12 July 2017 at 13:13, Christopher Schultz
wrote:
> All,
>
> I've got an SMTPAppender logging errors, etc. and I'd like to remove the
> exceptions from the log messages. Is there a good way to do that?
>
>
All,
I've got an SMTPAppender logging errors, etc. and I'd like to remove the
exceptions from the log messages. Is there a good way to do that?
Remember: log4j 1.3.x (for now)
I happen to already be using a subclass of SMTPAppender that I wrote (so
only send after X number of lo
Details are here:
https://blogs.apache.org/logging/entry/moving_on_to_log4j_2
Sent from my iPhone
> On 1 Dec 2016, at 10:32, Christopher Schultz
> wrote:
>
> Remko,
>
>> On 11/30/16 5:26 PM, Remko Popma wrote:
>> Chris,
>>
>> Glad to hear that.
>>
>> Be aware that Log4j 1 is broken in Java
Remko,
On 11/30/16 5:26 PM, Remko Popma wrote:
> Chris,
>
> Glad to hear that.
>
> Be aware that Log4j 1 is broken in Java 9 so you will need to go to
> Log4j 2 when you upgrade Java.
I'm curious... in what way is log4j 1.x broken in Java 9?
I've been meaning to switch to log4j 2.x for a numb
Chris,
Glad to hear that.
Be aware that Log4j 1 is broken in Java 9 so you will need to go to Log4j 2
when you upgrade Java.
Remko
Sent from my iPhone
> On 1 Dec 2016, at 1:41, Christopher Schultz
> wrote:
>
> All,
>
> On 11/17/16 10:28 AM, Christopher Schultz wrote:
>>> So, I implement
All,
On 11/17/16 10:28 AM, Christopher Schultz wrote:
>> So, I implemented an event trigger class in my driver class like this:
>>
>> package com.my;
>> public class Driver
>> {
>> [...]
>> public static class NeverTriggeringEventEvaluator
>> implements TriggeringEventEvaluator
>>
All,
On 11/17/16 10:20 AM, Christopher Schultz wrote:
> All,
>
> On 11/16/16 5:33 PM, Christopher Schultz wrote:
>> Scott,
>>
>> On 11/16/16 2:09 PM, Scott Harrington wrote:
> On 11/16/16 9:49 AM, Ralph Goers wrote:
>> First, I have to say that Log4j 1 reached end-of-life over a year
All,
On 11/16/16 5:33 PM, Christopher Schultz wrote:
> Scott,
>
> On 11/16/16 2:09 PM, Scott Harrington wrote:
On 11/16/16 9:49 AM, Ralph Goers wrote:
> First, I have to say that Log4j 1 reached end-of-life over a year
> ago. We recommend you upgrade to Log4j 2.
Fair enough
You might not even need to change the configuration if you use the
"org.apache.log4j.config" package in the "log4j-1.2-api" module , which is
not well documented, yet.
Gary
On Wed, Nov 16, 2016 at 3:36 PM, Remko Popma wrote:
> Chris,
>
> Are you aware that there is a log4j-1.2-api adapter inclu
Chris,
Are you aware that there is a log4j-1.2-api adapter included in Log4j2 that
allows you to keep your application code unchanged (unless you rely on the
innards of Log4j 1.2)?
You only need to change the configuration (the manual has tons of examples).
Just FYI.
Remko
Sent from my iPho
If you do look at Log4j2 it would be great if you could give us feedback on
what is missing for your use case. I or others can help turn things around
quickly to make Log4j 2 even better.
Gary
On Nov 16, 2016 2:33 PM, "Christopher Schultz"
wrote:
> Scott,
>
> On 11/16/16 2:09 PM, Scott Harringt
Scott,
On 11/16/16 2:09 PM, Scott Harrington wrote:
>>> On 11/16/16 9:49 AM, Ralph Goers wrote:
First, I have to say that Log4j 1 reached end-of-life over a year
ago. We recommend you upgrade to Log4j 2.
>>>
>>> Fair enough. I'm not quite there, yet. I suspect that log4j 2 will have
>>>
On 11/16/16 9:49 AM, Ralph Goers wrote:
First, I have to say that Log4j 1 reached end-of-life over a year
ago. We recommend you upgrade to Log4j 2.
Fair enough. I'm not quite there, yet. I suspect that log4j 2 will have
the same issue, though.
I don’t know how to configure a TriggeringEventEv
> On Nov 16, 2016, at 10:11 AM, Christopher Schultz
> wrote:
>
> Ralph,
>
> On 11/16/16 9:49 AM, Ralph Goers wrote:
>> First, I have to say that Log4j 1 reached end-of-life over a year
>> ago. We recommend you upgrade to Log4j 2.
>
> Fair enough. I'm not quite there, yet. I suspect that log4j
You might have to use an XML configuration file to get that to work in
Log4j 1: See org.apache.log4j.net.SMTPAppenderTest.testTrigger()
Gary
On Wed, Nov 16, 2016 at 9:11 AM, Christopher Schultz <
ch...@christopherschultz.net> wrote:
> Ralph,
>
> On 11/16/16 9:49 AM, Ralph Goers wrote:
> > First,
Ralph,
On 11/16/16 9:49 AM, Ralph Goers wrote:
> First, I have to say that Log4j 1 reached end-of-life over a year
> ago. We recommend you upgrade to Log4j 2.
Fair enough. I'm not quite there, yet. I suspect that log4j 2 will have
the same issue, though.
> I don’t know what you mean by “each log
Nov 16, 2016, at 7:24 AM, Christopher Schultz
> wrote:
>
> All,
>
> Apologies if this has been posted before.. I checked the archives but
> it's hard to search for such terms... lots of stuff comes up.
>
> I have an SMTPAppender configured and it's working (mo
All,
Apologies if this has been posted before.. I checked the archives but
it's hard to search for such terms... lots of stuff comes up.
I have an SMTPAppender configured and it's working (mostly) as expected.
The only problem is that each log message seems to generate its own
sepa
oops...
On Tue, Jul 22, 2014 at 9:37 PM, Gary Gregory
wrote:
> Remko shows 2.0 docs, this user is on 1.2...
>
> Gary
>
>
> On Tue, Jul 22, 2014 at 7:40 AM, Remko Popma
> wrote:
>
> > The PatternLayout has header/footer attributes to set some string for the
> > beginning and end of each log fil
Remko shows 2.0 docs, this user is on 1.2...
Gary
On Tue, Jul 22, 2014 at 7:40 AM, Remko Popma wrote:
> The PatternLayout has header/footer attributes to set some string for the
> beginning and end of each log file.
> http://logging.apache.org/log4j/2.x/manual/layouts.html#PatternLayout
> I'm
The PatternLayout has header/footer attributes to set some string for the
beginning and end of each log file.
http://logging.apache.org/log4j/2.x/manual/layouts.html#PatternLayout
I'm not sure if it will be included in every email but it is worth trying.
On Tue, Jul 22, 2014 at 8:29 PM, VolkerKop
Hi,
I'm using log4j 1.2.15.
The Appender used for email is:
This works nicely, yet I would like to add additional email message headers to
the message.
Is that possible?
If so, how can I add, for examp
Hi
I'm using log4j 2.0-beta9. I have a question about the SMTP appender. I
need to configure the subject, from and to values from properties. I'm
logging a MapMessage and my config is as below -
%d [%t] %-5p %c - %m%n
Hi
I'm trying out Log4j 2 (2.0-beta7) in a project. I.e. in my code I use SLF4J,
include Log4j 2 jars at runtime and assure by the use of Log4j 2
ConsoleAppender that my logging events indeed reach Log4j.
Now I would like to extend my logging output by adding an SMTPAppender that
will fo
OUT (BTW,
> it should be made clear in docs/JavaDoc that isFiltered == true ===
> filtered OUT), and if so, it does not proceed to log it:
> try {
>appender.append(event);
>
> Now, SMTPAppender overrides this isFiltered() and in it, it adds to the
> cycli
}
If I understand it correctly, it checks if the event is filtered OUT (BTW,
it should be made clear in docs/JavaDoc that isFiltered == true ===
filtered OUT), and if so, it does not proceed to log it:
try {
appender.append(event);
Now, SMTPAppender overrides this is
believe this is correct behavior. Otherwise you may only have one ERROR
>> and the email never gets sent because the appender is waiting for 9 more
>> events...
>>
>> Best regards,
>> Remko
>>
>> Sent from my iPhone
>>
>> On 2013/05/09, at 21:32,
>
> > Hi all,
> >
> > I'd like to report 2 problems I am encountering using the SMTPAppender. I
> > am using it* to send me mails whenever an ERROR is logged in a web
> > application.
> >
> > 1) Buffer size is ignored. Excerpt from my log4j2
Sent from my iPhone
On 2013/05/09, at 21:32, Matej Vitásek wrote:
> Hi all,
>
> I'd like to report 2 problems I am encountering using the SMTPAppender. I
> am using it* to send me mails whenever an ERROR is logged in a web
> application.
>
> 1) Buffer size is ignored.
Hi all,
I'd like to report 2 problems I am encountering using the SMTPAppender. I
am using it* to send me mails whenever an ERROR is logged in a web
application.
1) Buffer size is ignored. Excerpt from my log4j2.xml:
You will notice that the buffer size is 10. I'd expect to be
Alternatively, if you want to stick with Log4j, try.
http://openutils.sourceforge.net/openutils-log4j/smtpappender.html
Jake
On Thu, 07 Jun 2012 11:40:31 +0200
ceki wrote:
Hi Zbynek,
Have you looked at logback? Its SMTPAppender [1] supports dynamically
setting the destination, thus
Hi Zbynek,
Have you looked at logback? Its SMTPAppender [1] supports dynamically
setting the destination, thus addressing your requirement.
See also the document entitled "Triggering an email containing the
isolated logs of selected transactions" [2] and in particular the
section
Hi,
Im using SMTPAppender with MDC to send emails with custom subject
and its working very nicely.
Now, I would like to specify email receivers according to MDC value, like :
MDC="a" -> "1...@email.com, 2...@email.com"
MDC="b" -> "3...@emai.
Hi,
According to issue 35259:
https://issues.apache.org/bugzilla/show_bug.cgi?id=35259 SMTPAppender allows
using JNDI references to mail sessions.
But I don't see this possibility in javadoc and source code.
Could you clarify, how can I use it?
Thanks.
Br, Eduard Gurskiy
tests. I see the console output, but except for 1 case (out of
>> dozens), there was no SMTP activity.
>>
>> I then timed adding my own EvaluatorClass to see what was going on:
>>
>> > value='org.tabbysplace.casServer.Evaluator' />
>&
1 case (out of
dozens), there was no SMTP activity.
I then timed adding my own EvaluatorClass to see what was going on:
/>
This class writes to the console and tehn returns true. The class is
never called. It's as if the SMTPappender is heing ignored.
Any ideas?
--
Jonathan Rosenber
:
This class writes to the console and tehn returns true. The class is
never called. It's as if the SMTPappender is heing ignored.
Any ideas?
--
Jonathan Rosenberg
Founder & Executive Director
Tabby's Place, a Cat Sanctuary
http://www.t
chhoch
To: log4j-user@logging.apache.org
Date: 11/16/2011 06:04 PM
Subject: Re: SMTPAppender , server instance
I will like to try the second approach , my log4j is initialized by
spring , I have
org.springframework.web.context.ContextLoaderListener
in
>Zapsaná v obchodním
> rejstříku, vedeném
> Krajským soudem v Brně
> oddíl C, vlozka 39922
gging.apache.org
Date: 11/16/2011 04:29 PM
Subject:Re: SMTPAppender , server instance
Thanks for your reply,
If I use param then I have to send different deployments to different
servers whihc I dont want . Can I plugin some code which appends the
system name (I mean host name o
Krajským soudem v Brně
oddíl C, vlozka 39922
From: fachhoch
To: log4j-user@logging.apache.org
Date: 11/16/2011 04:29 PM
Subject:Re:
s with the Subject param?
>
> From log4j wiki:
>
> name="AdministratorEmail"
> class="org.apache.log4j.net.
> SMTPAppender">
> ...
>
>
> Brett
>
> On 11/16/11, fachhoch wrote:
>>
>> I am want to use org.apache.log4j.
oduction , staging , training , development
> instance.
> SMTPAppendersend out email but I cannot tell if this exception happened
> in production, staging,development , training environment, any suggestions?
> I prefer not to change code for each instance deployment.
>
>
>
I am want to use org.apache.log4j.net.SMTPAppender , can this appender
append the system name when sending email ?
Our code will be deployed to production , staging , training , development
instance.
SMTPAppendersend out email but I cannot tell if this exception happened
in
ncAppender.
>
> I am using SMTPAppender and hooked it up with AsyncAppender ( ref="mail"/>)
>
> Did anyone else notice this? Can we send emails asynchronously at all?
>
>
> Thanks in advance,
>
> Amit
>
>
>
>
>
>
> --
> View
It is not working for me as well.
I am making use of a customized SMTPAppender class for my application
purposes. It is not even entering this class. If I remove async way, it is
working fine.
With async enabled, if I give the mailhost wrongly, no exception is thrown
back.
Please help
Here is
You might be interested in the "it.openutils.log4j.AlternateSMTPAppender"
[1]. It allows for dynamic subjects and more. Note that I am not affiliated
with this project. I just found it to be useful.
[1] http://www.openmindlab.com/lab/tools/openutilslog4j/smtp.html
Jake
On Mon, 23 May
Hi,
thx for advice but since default SMTPAppender does not allow usage of
PatternLayout in subject
I needed to implement this by extedning usual SMTPAppender.
Now it works just fine :)
Kind Regards / Mit
Hi Heri,
thanks a lot for this advice but if I am correct I can use %X{CUSTOMER}
only in PatternLayout.
Then I need to create my own implementation of SMTPAppender and this is
what i wanted to avoid.
Any chance it can be done without custome implementation?
Thx
ot; encountered unexpected exception";.
logger.error(msg, e);
}
If you really want it in the subject, you will likely need to extend
SMTPAppender. You could create an object that represents the combination of
the server context and the message (or just the context if you don't ne
using of system properties in subject of SMTPAppender
>
>
>
> Hi,
>
> I have a 1 server app and many clients app on different servers.
> Obviously I wanted to know from which server the email comes,
> so I used
> this:
>
> log4j.xml
>
>
>
Hi,
I have a 1 server app and many clients app on different servers.
Obviously I wanted to know from which server the email comes, so I used
this:
log4j.xml
and since system property has to
forwarded to a "downstream" appender.
EventConsolidatingAppender is probably most useful when the downstream
appender is SMTPAppender. In this case, you can use
EventConsolidatingAppender so that if, say, 200 errors are raised to a given
logger within 30 seconds, instead of receiving
ffersize=1 I did solve the problem, but I will lose some
context in the email sent.
From: Papierman, Paul
Sent: Tuesday, February 15, 2011 11:34 AM
To: 'log4j-user@logging.apache.org'
Subject: Custom EvaluatorClass with SMTPAppender when returning true sends
PREVIOUS log message
1
1) I've created a custom Evaluator class that I wish to use for the
SMTPAppender to not send the same emails for errors over a period of time.
2) I've added it to my log4j.xml configuration:
m
I confirmed that my problem was unrelated to log4j and SMTPAppender but was
instead caused by geronimo-javamail-1.4_spec-1.3.jar. The geronimo-javamail
.jar is distributed with Apache CXF and listed as a dependency for CXF, but a
search shows that others have had mail formatting problems when
lpool Corporation
(269)-923-5278
"A wrong note played hesitatingly is a wrong note. A wrong note played
with conviction is interpretation."
DBW wrote on 06/02/2010 06:00:19 PM:
> I've successfully configured SMTPAppender to send email, and am
> receiving emails, but the "
, Whirlpool Corporation
(269)-923-5278
"A wrong note played hesitatingly is a wrong note. A wrong note played
with conviction is interpretation."
DBW wrote on 06/02/2010 06:00:19 PM:
> I've successfully configured SMTPAppender to send email, and am
> receiving emails, but t
I've successfully configured SMTPAppender to send email, and am receiving
emails, but the "Subject" field is always empty, and the "To" field is always
"undisclosed-recipients" rather than the email address of the recipient(s). Am
I doing something wrong? Is
ere a way to put dynamic subjects in the subjects?
>
>
>
--
View this message in context:
http://old.nabble.com/dynamic-subject-in-SMTPAppender-tp26753869p26800355.html
Sent from the Log4j - Users mailing list archive at Nabble.com.
---
ext:
http://old.nabble.com/dynamic-subject-in-SMTPAppender-tp26753869p26753869.html
Sent from the Log4j - Users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additiona
The RollingFileAppender framework in the extras companion
(http://logging.apache.org/log4j/companions/extras/index.html) would be a
better starting point. Much more designed for extensibility than
DailyRollingFileAppender but offers the same features when properly configured.
You should be ab
Hello,
Does anyone know if it's possible to "concatenate" two appenders? I have
setup a DRFA that rollovers at midnight, and I'd like it to send the file it
generates by mail to a certain mail address. I know I can modify the DRFA to
do that, but I wonder if such behaviour is already contemplat
On Jul 29, 2009, at 10:09 AM, pedrofaundez...@terra.es wrote:
Loren Siebert wrote:
You could try using the StackHub service.
http://www.stackhub.com
The use case you describe below is the main reason I built StackHub.
It will coalesce these errors (even across multiple instances of your
Loren Siebert wrote:
> You could try using the StackHub service.
>http://www.stackhub.com
>
> The use case you describe below is the main reason I built StackHub.
> It will coalesce these errors (even across multiple instances of your
> app) and you'll get just one notification until you ma
em, I
would like to by default group all errors that happen in a minute
and then send them. Is there a way to do that with SMTPAppender?
Ahora también puedes acceder a tu correo Terra desde el
móvil.
Infórmate pinchando
a minute and then send them. Is there a way to
do that with SMTPAppender?
Ahora también puedes acceder a tu correo Terra desde el móvil.
Infórmate pinchando aquí.
hi,
I am using log4j in my project , my problem is, I am getting an exception
log4j:ERROR Error occured while sending e-mail notification.
com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS
command first. f21sm25128997rvb.36
at com.sun.mail.smtp.SMTPTransport.issueSendCo
Hi,
I'm using a custom EvaluatorClass for my SMTPAppender that will only send
after 5 logged error or fatal messsages. However , if I only have 1 error in
my script then I don't get any email. The issue is I don't want to get an
email everytime there is an error in my script (
When I include the following smtp appender (name MAIL ) line in my
log4j.properties my java application crash with not a single line of log.
#
---
# Log4J Loggers # level order OFFhttp://www.nabble.com/SMTPAppender-on
amitshinde wrote:
>
> Did anyone else notice this? Can we send emails asynchronously at all?
>
I am using log4j-1.2.15 in Tomcat 5.5. Sending emails asynchronously seems
to work with an
in the root and an in
the "async" appender. "mail" is the name of the SMTPAp
Hello Everyone,
I am trying to send asynchronous error emails using log4j. I was
successfully able to get the emails but it looks like the emails are
synchronous and block the event processing till the email is sent. This
happens inspite of using AsyncAppender.
I am using SMTPAppender and
According to the stack trace, authentication failed.
javax.mail.AuthenticationFailedException
at javax.mail.Service.connect(Service.java:319)
at javax.mail.Service.connect(Service.java:169)
at javax.mail.Service.connect(Service.java:118)
at javax.mail.Tra
Hello All,
I am trying out a simple application to test log4j to send out email
through gmail. I have followed the instructions by VMMM. So this is
how my code looks:
public class LogCheck {
private static Logger log;
public static void main(String args[]) {
System.setProperty
t just yet. Seems like a very common thing
for people to do, so much so, that an option to "wrap itself" in an async
appender would be a good idea?
Thanks,
AJ
- Original Message -
From: "Joe White" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, December 03, 2008
loper
[EMAIL PROTECTED]
-Original Message-
From: Massimo Quagliani [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2008 12:35 PM
To: Log4J Users List
Subject: RE: SMTPAppender
I tried:
telnet mail.libero.it 25
Trying 212.52.84.54...
telnet: Unable to connect to remote host: Conne
vedì 4 dicembre 2008 19.11
To: Log4J Users List
Subject: AW: SMTPAppender
Try a standalone tool in order to open this socket. E.g. castalia
socktest (free download), or even telnet in your command prompt:
Telnet host port
heri
-Ursprüngliche Nachricht-
Von: Massimo Quagliani [mailto:
-
Von: Massimo Quagliani [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 4. Dezember 2008 19:35
An: Log4J Users List
Betreff: [SPAM (Keyword Checking)] - RE: SMTPAppender - Found word(s) list
error in the Text body
I tried:
telnet mail.libero.it 25
Trying 212.52.84.54...
telnet: Unable to connect
-Original Message-
From: Bender Heri [mailto:[EMAIL PROTECTED]
Sent: giovedì 4 dicembre 2008 19.11
To: Log4J Users List
Subject: AW: SMTPAppender
Try a standalone tool in order to open this socket. E.g. castalia socktest
(free download), or even telnet in your command prompt:
Telnet host port
heri
Users List
Betreff: RE: SMTPAppender
Please,
could you explain in detail what you would do in this situation?
I didn't figure out your suggestion.
/Max
-Original Message-
From: Joe White [mailto:[EMAIL PROTECTED]
Sent: giovedì 4 dicembre 2008 17.45
To: log4j-user@logging.apach
Please,
could you explain in detail what you would do in this situation?
I didn't figure out your suggestion.
/Max
-Original Message-
From: Joe White [mailto:[EMAIL PROTECTED]
Sent: giovedì 4 dicembre 2008 17.45
To: log4j-user@logging.apache.org
Subject: RE: SMTPAppender
er.java:189)
at
com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1359)
... 28 more
-Original Message-
From: Joe White [mailto:[EMAIL PROTECTED]
Sent: mercoledì 3 dicembre 2008 20.26
To: log4j-user@logging.apache.org
Subject: Re: SMTPAppender
Gmail
Message-
From: Joe White [mailto:[EMAIL PROTECTED]
Sent: mercoledì 3 dicembre 2008 20.26
To: log4j-user@logging.apache.org
Subject: Re: SMTPAppender
Gmail SMTP server requires TLS and it does not use the default port of 25.
According to this link:
http://mail.google.com/support/bin
t a log4j
1.2.16 soon.
"
Quoting Massimo Quagliani <[EMAIL PROTECTED]>:
Hi,
I have the following problem using SMTPAppender,
Actually the email does not arrive to the mailbox and I got the
following error:
log4j:ERROR Error occured while sending e-mail notification.
javax.mai
> Hi,
> I have the following problem using SMTPAppender,
> Actually the email does not arrive to the mailbox and I got the
> following error:
>
> log4j:ERROR Error occured while sending e-mail notification.
> javax.mail.MessagingException: Could not connect to SMTP host:
&
Is it possible to send an email only once?
For example I want to send all the WARNING and ERROR when the application has
finish.
Thanks,
On Oct 3, 2008, at 4:57 AM, Thorbjørn Ravn Andersen wrote:
RMMM skrev den 28-09-2008 05:46:
I succeeded in getting this to work (using log4j to send logging
messages by smtp over ssl).
I think it's appalling that log4j doesn't do this, and it isn't
mentioned
anywhere in the
documentatio
RMMM skrev den 28-09-2008 05:46:
I succeeded in getting this to work (using log4j to send logging messages by
smtp over ssl).
I think it's appalling that log4j doesn't do this, and it isn't mentioned
anywhere in the
documentation. I even bought the complete manual for $20, but it doesn't say
a
Hello,
Thank you very much.. It works..
Cheers,
Virajith
--
Experience Leads To Success !
Keep In Touch with Viraj...
t look at
that, so you
need to set mail.smtps.host.
If you need to use password authentication, you need to also set:
System.setProperty("mail.smtps.auth", "true");
The reason for this is similar to above. SMTPAppender will set
mail.smtp.auth, but that
won't have an
Hello,
By visiting lots of websites I also came to know that property -
"mail.smtp.starttls.enable","true"
is required to send the requested STARTTLS command.
So I put the code, *System.setProperty("mail.smtp.starttls.enable",
"true"); *inside the main method of my application. But now I'm getti
s,
KHP Virajith
I'm modified my local copy of SMTPAppender to add a protocol and port
attributes, but it didn't work as expected with the particular JVM
that I tried (Mac, JDK 1.5). There were some behavior that was not
consistent, so I intended to check on a different JVM but go
Hello,
Sorry still I couldn't get it solved. It's really amazing fact that no
forum/IT website answered this question. I'm still trying to solve the issue
but always im getting that error i have mentioned in my post..
Regards,
KHP Virajith
message in context:
http://www.nabble.com/Problem-in-using-SMTPAppender-with-gmail-tp19570697p19699715.html
Sent from the Log4j - Users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
1 - 100 of 286 matches
Mail list logo