Re: ERJavaMail problem

Ondřej Čada <[email protected]> Wed, 7 Sep 2011 17:32:31 +0200
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
P.S.

On Sep 7, 2011, at 5:18 PM, Ond=C5=99ej =C4=8Cada wrote:
> There's a finishInitialization method in ERExtensions which looks =
promising, but it's an instance method, not a class one; and althougth =
there is a sharedInstance inherited method there too, it needs some =
"principal class".

I've tried

=
ERXExtensions.sharedInstance(ERXExtensions.class).finishInitialization();

which seemed logical, but that yielded

exception: java.lang.IllegalArgumentException: No key operator available =
to compute aggregate @sortAsc.key

when trying to send mail. Then, straw-catching, I've tried

ERXExtensions.sharedInstance(ERJavaMail.class).finishInitialization();

which seems completely illogical, *but* it seems to work (wow!), more or =
less. This time erjavamail does log the process which fails eventually, =
but the logs

MAIL FROM:<[email protected]>
250 2.1.0 Ok
RCPT TO:<[email protected]>
554 5.7.1 <[email protected]>: Relay access denied
DEBUG SMTP: Invalid Addresses
DEBUG SMTP:   [email protected]
DEBUG SMTP: Sending failed because of invalid destination addresses
RSET
250 2.0.0 Ok
javax.mail.SendFailedException: Invalid Addresses;

suggest this time it might all right in the app, and that the remaining =
problem would be at the firewall/SMTP server, will have to check with =
the admin.

Triple-weird! Anyway thanks a lot for all the advices.
---
Ondra =C4=8Cada
OCSoftware:     [email protected]               http://www.ocs.cz
private         [email protected]             http://www.ocs.cz/oc