Sorry to keep on asking help on this one, but it causes me much trouble...
I tried to set the properties directly in the ERExtensions.framework Properties file with:

er.extensions.ERXApplication.DefaultMessageEncoding=UTF8
er.extensions.ERXMessageEncoding.Enabled=true

but it keeps on serving the page in ISO...
Some forms seem to also be submitted in ISO which lead to problems with accentuated characters in the database:(

No one knows how to force Wonder to use specific properties?

Thanks

Xavier

PS: I've got too much things linked to move back from Wonder (and now I'm on it, I really don't want to change...).


Hi,
I hope someone used to Wonder will be able to help.
I seems I'm have global issue regarding parameters.
From er.javamail attributes to text encoding...

Everything is UTF8 but everything is served using ISOxxx! so I have different rendering issue and my customer get their notification emails with trashed characters:(

Xavier



OK, I tried a couple things:
I tried to use ERWOMailDelivery and got the same issue, which led me to believe none of my properties are taken into account (no smtp host, no nothing).
I tried only with WOMailDelivery and this time it worked!

So here's more details in case it reminds someone about something:
Wonder Frameworks linked in my application:
-ERJars
-ERExtensions

Properties:
er.javamail.centralize=false
# Centralize sends all emails to the er.javamail.adminEmail user.
er.javamail.debugEnabled=true
# Determines whether or not email debugging is displayed. This contains protocol-level debug information.
er.javamail.adminEmail=REMOVED
# The email address of the admin user to send centralized emails to. This is a required property.
er.javamail.smtpHost=REMOVED
# The SMTP host name to use. If this isn't set, mail.smtp.host will be checked and ultimately WOHost will be used.
er.javamail.senderQueue.size=50
# The number of messages that the sender queue can hold. Defaults to 50.
er.javamail.milliSecondsWaitIfSenderOverflowed=6000
# The number of milliseconds to wait if the sender queue is full. Default is 6000.
er.javamail.smtpAuth=true
# Sets whether or not Authenticated SMTP is used to send outgoing mail. If set, er.javamail.smtpUser MUST also be set (and preferably er.javamail.smtpPassword).
er.javamail.smtpUser=REMOVED
# The username to use to login to the authenticated SMTP server.
er.javamail.smtpPassword=REMOVED
# The password to use to login to the authenticated SMTP server.
#er.javamail.XMailerHeader =
# The X-Mailer header to put into all outgoing mail messages. Defaults to nothing.
er.javamail.defaultEncoding=UTF-8
# The default character encoding to use for message content. Defaults to ???.


That's all I have:(

Xavier



Hello Oliver,
just tried it (with either a comment # or set it to false), and still got the:
java.lang.IllegalArgumentException: When setting 'er.javamail.centralize=true' (which means you just test sending mails), you must also give a valid 'er.javamail.adminEmail=[EMAIL PROTECTED]' to which the mails are sent.



hi

did you try to set the property directly whitin the Properties File in the ERJavaMail framework?

ERJavaMail.framework\Resources\Properties

best regards
oliver


On 10/9/06, Dev WO <[EMAIL PROTECTED]> wrote:
I just added:
System.out.println( "At startup, centralize propertie is: " + System.getProperty( "er.javamail.centralize"));

and it returns false!?

So I really don't know why I got the error, it seems the properties are overwritten... or not taken into account:(

Xavier


Hi,
I followed the different resources about using ERJavaMail:
-the list

So far I though everything was working as I didn't get any crash, but no email was sent.

After a couple adjustments, I was able to get the error:
java.lang.IllegalArgumentException: When setting 'er.javamail.centralize=true' (which means you just test sending mails), you must also give a valid ' er.javamail.adminEmail=[EMAIL PROTECTED]' to which the mails are sent.

But I've got my Properties like:
er.javamail.centralize=false


So it make me think probably other properties won't be red too like the smtp host...

If I cannot make it read my properties, is there any way to set them directly in my email method?

Thanks

Xavier
_______________________________________________
WebObjects-dev mailing list


 _______________________________________________
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/oliver.egger%40gmail.com

This email sent to [EMAIL PROTECTED]




--
oliver egger

dienerstr. 75 - 8004 zürich - switzerland
http://www.egger-loser.ch
mobile +41765795005

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:

This email sent to [EMAIL PROTECTED]



 _______________________________________________
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