Ondřej Čada
2011-09-07 05:01:51 UTC
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=true' (which means you just test sending mails), you must also give a valid 'er.javamail.adminEmail=***@bar.com' 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 Čada
OCSoftware: ***@ocs.cz http://www.ocs.cz
private ***@ocs.cz http://www.ocs.cz/oc
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=true' (which means you just test sending mails), you must also give a valid 'er.javamail.adminEmail=***@bar.com' 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 Čada
OCSoftware: ***@ocs.cz http://www.ocs.cz
private ***@ocs.cz http://www.ocs.cz/oc