my system properties are not recognized by ERJavaMail.
It complains with the following message:
When setting 'er.javamail.centralize=true' (which means you just
test sending mails), you must also give a valid '[EMAIL PROTECTED]
' to which the mails are sent.
I have already tried to set them in code just before mail delivery
starts.
Only ERJavaMail and ERExtensions frameworks are linked into my
project.
define "set them in code". If you're trying to set system properties
in code, you're probably "too late" to do it. Once the framework has
initialized, it does not look at the values in code. You should
either set them in your Properties file, set them as -D system
properties on the commandline, or set them via the API on
ERJavaMail.sharedInstance() after the framework has initialized. The
recommended method is to set them in Properties. If you set system
properties, you will need to call
ERJavaMail.sharedInstance().initializeFrameworkFromSystemProperties()
(never tried this, but it should work). Again, though, I would just
set them in your Properties file.
ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]