I think I've fixed the SendmailAction problem initialization to work.
Please try this (I used a 'child' element to configure the action like
other actions):
public void configure(Configuration conf) throws ConfigurationException
{
if (conf != null) {
getLogger().debug("SendmailAction: init");
default_properties = new Properties();
default_properties.put("mail.smtp.host",conf.getChild("smtphost").getVal
ue("127.0.0.1"));
getLogger().debug("SendmailAction: using
"+default_properties.get("mail.smtp.host")+" as the smtp server");
}
}
ByeBye,
Paolo Scaffardi
AIRVENT SAM S.p.A.
-----Messaggio originale-----
Da: Klaus Bertram [mailto:[EMAIL PROTECTED]]
Inviato: venerdì 21 settembre 2001 16.24
A: [EMAIL PROTECTED]
Oggetto: RE: DIFF [C2.0] SendmailAction
ok ok
was my own changes i had to remove :(
Klaus
> -----Original Message-----
> From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 21, 2001 1:44 PM
> To: [EMAIL PROTECTED]
> Subject: AW: DIFF [C2.0] SendmailAction
>
>
> > Klaus Bertram wrote:
> >
> > Hi Carsten,
> >
> > I test it with the brunch and it works with attribute and without
> > we can now put out the comments they are sill inside
> >
> Thanks for testing, but what comments do you mean? I don't see any
> in the cvs version.
>
>
> > i will later also test the head but i think it works also
> >
> Great, thanks.
>
> Carsten
>
> > Klaus
> >
> > nbis - Röttgerweg 10 - 51371 Leverkusen
> > phone: +49-214-206494-0
> > fax: +49-214-206494-44
> > email: [EMAIL PROTECTED]
> >
> > > -----Original Message-----
> > > From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, September 21, 2001 11:24 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: AW: DIFF [C2.0] SendmailAction
> > >
> > >
> > > I looked at the configure() method, and I think the exception
> > > is thrown by the use of the getAttribute() method.
> > > If the attribute "smtphost" is not set in the configuration of the
> > > action, the getAttribute("smtphost") call will throw an exception!
> > > So, the correct call would be:
> > > getAttribute("smtphost", default-value).
> > >
> > > I will change the action according to the pattern above.
> > > If you could please test, if this works for you?
> > >
> > > Carsten
> > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: Klaus Bertram [mailto:[EMAIL PROTECTED]]
> > > > Gesendet: Freitag, 21. September 2001 10:46
> > > > An: [EMAIL PROTECTED]
> > > > Betreff: RE: DIFF [C2.0] SendmailAction
> > > >
> > > >
> > > > Hi Carsten,
> > > > every time i try to set the default value for smtphost it throws
an
> > > > exception
> > > > also when the configuration parameter it not set.
> > > >
> > > > So it seems better to put out the configuration parameter
> > > > it work's fine
> > > >
> > > > at the moment my time is a litle bit busy,
> > > > but i want rewrite the sendmail action with features to
> send multipart
> > > > mail's
> > > >
> > > > Klaus
> > > >
> > > >
> > > > nbis - Röttgerweg 10 - 51371 Leverkusen
> > > > phone: +49-214-206494-0
> > > > fax: +49-214-206494-44
> > > > email: [EMAIL PROTECTED]
> > > >
> > > > > -----Original Message-----
> > > > > From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Friday, September 21, 2001 10:18 AM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: AW: DIFF [C2.0] SendmailAction
> > > > >
> > > > >
> > > > > Hi Klaus,
> > > > >
> > > > > what's the use of this patch? As far as I can tell it simply
> > > > > comments the configure() method out, correct? Why this?
> > > > >
> > > > > Carsten
> > > > >
> > > > >
> > > > > > -----Ursprüngliche Nachricht-----
> > > > > > Von: Klaus Bertram [mailto:[EMAIL PROTECTED]]
> > > > > > Gesendet: Donnerstag, 20. September 2001 18:09
> > > > > > An: Cocoon dev
> > > > > > Betreff: DIFF [C2.0] SendmailAction
> > > > > >
> > > > > >
> > > > > > Hi all,
> > > > > >
> > > > > > here is an aditional diff for the SendmailAction aginst
Brunch
> > > > > >
> > > > > > Klaus
> > > > > >
> > > > > > nbis - Röttgerweg 10 - 51371 Leverkusen
> > > > > > phone: +49-214-206494-0
> > > > > > fax: +49-214-206494-44
> > > > > > email: [EMAIL PROTECTED]
> > > > > >
> > > > >
> > > > >
> > > > >
> >
---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, email: [EMAIL PROTECTED]
> > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, email: [EMAIL PROTECTED]
> > > >
> > >
> > >
> > >
---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, email: [EMAIL PROTECTED]
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]