Am 23.10.2011 um 13:34 schrieb Theodore Petrosky:

> […]
> 
> er.javamail.centralize was set to false in the application constructor. 
> However it was ignored and when I looked at the logs in the mail server I see 
> that the toAddress was "[email protected]".
> 
> which was odd as I was setting the adminEmail in the application constructor 
> also.
> 
> After experimenting I find that these two properties do not 'stick' even 
> though my log statements claim that the values are correct.
> 
> ERXProperties.setStringForKey("false", "er.javamail.centralize");
> ERXProperties.setStringForKey("[email protected]", 
> "er.javamail.adminEmail");
> 
> bottom line, I got things to work, just not as I expected. Is this correct? 
> Should I be adjusting the properties in the application constructor? If not, 
> then where. Or maybe the better question is, "Is there a better way to do 
> this?"
> 
> 
> Ted

I would suppose that ERJavaMail was already initialized when you reached the 
application constructor so your property changes did not modify those values 
for the framework anymore. Kieran's suggestion should resolve your problem.

jw

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to