Re: ERJavaMail problem
David LeBer <[email protected]> Wed, 7 Sep 2011 08:01:36 -0400
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
On 2011-09-07, at 1:01 AM, Ond=C5=99ej =C4=8Cada wrote: > Hello there, >=20 > I've bumped into another problem. Since I need a bit more for mail = than WOMailDelivery can give, I've decided to use ERJavaMail. >=20 > I went by this quickstart recommendation: >=20 > = http://homepage.mac.com/kelleherk/iblog/C183784902/E2093239404/index.html >=20 > 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. >=20 > 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. >=20 > 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. >=20 > Guess I could dive into its pattern stuff as well, but I've already = spent too many hours on something which should "just work" :( >=20 > Any hints? Does your application/session extend ERXApplication/ERXSession? ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile: http://www.linkedin.com/in/davidleber twitter: http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org