ERJavaMail problem

Ondřej Čada <[email protected]> Wed, 7 Sep 2011 07:01:51 +0200
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
Hello there,

I've bumped into another problem. Since I need a bit more for mail than =
WOMailDelivery can give, I've decided to use ERJavaMail.

I went by this quickstart recommendation:

=
http://homepage.mac.com/kelleherk/iblog/C183784902/E2093239404/index.html

First problem was that I've kept getting the "When setting =
'er.javamail.centralize=3Dtrue' (which means you just test sending =
mails), you must also give a valid '[email protected]' =
to which the mails are sent" error, although the Properties are set up =
all right.

Well I've downloaded the Wonder sources too, and quickly found the cause =
is that the quickstart self-evidently forgot to point out that one must =
first send the initializeFrameworkFromSystemProperties to the ERJavaMail =
shared instance. Never mind, I've added the intialization.

Nevertheless, from the method I kept getting null pointer exceptions. =
Digging deeper into the source and trying it step by step I've found the =
cause to be the ERJavaMail.isValidEmail method, which raises the =
exception.

Guess I could dive into its pattern stuff as well, but I've already =
spent too many hours on something which should "just work" :(

Any hints?

Thanks,
---
Ondra =C4=8Cada
OCSoftware:     [email protected]               http://www.ocs.cz
private         [email protected]             http://www.ocs.cz/oc