• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ERJaveMail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERJaveMail


  • Subject: Re: ERJaveMail
  • From: Mike Schrag <email@hidden>
  • Date: Thu, 31 May 2012 06:54:21 -0400

It's arbitrary, I guess. Not much different than defaulting a boolean prop to true if it isn't set, which is pretty common. It just happens to have a more complex default.

Sent from my iPhone

On May 31, 2012, at 5:58 AM, "Cheong Hee \(Gmail\)" <email@hidden> wrote:

sorry I am half blind and in too fast to reply... curious the rationale why the pattern is not set in the properties file itself.  thanks.
 
Cheers
----- Original Message -----
From: Mike Schrag
To: Cheong Hee (Gmail)
Cc: Ron X ; WebObjects Development
Sent: Thursday, May 31, 2012 5:52 PM
Subject: Re: ERJaveMail

That line is commented out. The one listed there is not the default. It's in code.

Sent from my iPhone

On May 31, 2012, at 5:49 AM, "Cheong Hee \(Gmail\)" <email@hidden> wrote:

Serious?  I am actually pulling out the properties file in ERJavaMail, unless not the right one or the "latest".  Or unless some code in ERJavaMail setting the value again.  The framework I am having  is maybe one~two months ago.  Correct me if wrong..
 
 
# *** ERJavaMail settings
# *** Defaults to 'safe' settings:
# ***
 
# Sometimes when sending big masses of emails, the java virtual machine
# doesn't collects correctly the garbage and needs a little delay
# between each message sending.  Use this option if you have problem with
# memory management
er.javamail.useSenderDelay = false
 
# This delay is set to 15 milliseconds
er.javamail.senderDelayMillis = 15
 
# * Default encoding used for ERJavaMail
er.javamail.defaultEncoding = iso-8859-1
 
# * Enables ERJavaMail to send all the mails to only one destination
# This is useful when debugging
er.javamail.centralize = true
 
# * Prints javamail debug infos
# It is recommended to activate this switch when there are problems
# with smtp configuration
er.javamail.debugEnabled = false
 
# * The admin email, this is where "centralized" mails will go
#er.javamail.adminEmail = email@hidden
 
# * SMTP outbound host
#er.javamail.smtpHost = smtp.domain.com
 
# Valid ERJavaMail email pattern. If null, then the internal default will be used
#er.javamail.emailPattern = ^.*?@.*$
 
# * Number of messages that the sender queue can hold at a time
er.javamail.senderQueue.size = 50
 
# * Time to wait when mail sender queue is overflowed
er.javamail.milliSecondsWaitIfSenderOverflowed = 6000
 
# Used to set a default X-Mailer
#er.javamail.mailer.XMailerHeader =
 
# White and black email address patterns
# This can be useful in testing when say
# you only want to allow emails to be sent to *@mycompany.com
# In this case you would add:
# er.javamail.WhiteListEmailAddressPatterns=("*@mycompany.com", "email@hidden")
 
# To prevent sending mail to certain addresses you can use the black list
# er.javamail.BlackListEmailAddressPatterns=("*@baddomain.com", "email@hidden")
 

# * The port to use with the smtp server, if not set, defaults to 25
#er.javamail.smtpPort = 25
 
 
----- Original Message -----
From: Mike Schrag
To: Cheong Hee (Gmail)
Cc: Ron X ; WebObjects Development
Sent: Wednesday, May 30, 2012 6:58 PM
Subject: Re: ERJaveMail

Are you sure? I thought that was commented out and says something about using the default. I haven't looked at that in forever, but I'm almost positive you're not reading.

Sent from my iPhone

On May 30, 2012, at 12:33 AM, "Cheong Hee \(Gmail\)" <email@hidden> wrote:

This is only what I got in emailPattern in ERJavaMail properties: "^.*?@.*$"
 
Is this what you are having to as default?
 
Cheers
 
----- Original Message -----
From: Mike Schrag
To: Ron X
Cc: WebObjects Development
Sent: Tuesday, May 29, 2012 9:19 PM
Subject: Re: ERJaveMail

my guess is that your regex pattern for er.javamail.emailPattern doesn't work. i'm not even going to try debugging that one, though. what's wrong with the pattern that's built into erjavamail?

On May 29, 2012, at 2:43 AM, Ron X <email@hidden> wrote:

hi,

i have some strange error on application start:

WARN  38.33 MB used/42.73 MB free [ProcessChangesQueue] (ERXNSLogLog4jBridge.java:43)  - A fatal exception occurred: When 'er.javamail.centralize' is true (default), all outgoing mails will get sent to 'er.javamail.adminEmail' instead of the normal TO addresses, but you did not provide a valid email for that property.
[2012-5-28 23:40:30 PDT] <ProcessChangesQueue> java.lang.IllegalArgumentException: When 'er.javamail.centralize' is true (default), all outgoing mails will get sent to 'er.javamail.adminEmail' instead of the normal TO addresses, but you did not provide a valid email for that property.
    at er.javamail.ERJavaMail.initializeFrameworkFromSystemProperties(ERJavaMail.java:132)
    at er.javamail.ERJavaMail.finishInitialization(ERJavaMail.java:113)
    at er.extensions.ERXFrameworkPrincipal$Observer.willFinishInitialization(ERXFrameworkPrincipal.java:97)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

but i have

### ERJavaMail
er.javamail.centralize = true
er.javamail.smtpHost = localhost
er.javamail.defaultEncoding = UTF-8
er.javamail.emailPattern = ^[a-zA-Z0-9!#$%&'*+\\-/=?^_`{|}~]+(\\.[a-zA-Z0-9!#$%&'*+\\-/=?^_`{|}~]+)*@[a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9]){0,1}((\\.[a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9]){0,1})*\\.[a-zA-Z]{2,6}){1,1}$

er.javamail.adminEmail = email@hidden

in my property file
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update email sent to email@hidden


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

This email sent to email@hidden

  • Follow-Ups:
    • Re: ERJaveMail
      • From: "Cheong Hee (Gmail)" <email@hidden>
References: 
 >ERJaveMail (From: Ron X <email@hidden>)
 >Re: ERJaveMail (From: Mike Schrag <email@hidden>)
 >Re: ERJaveMail (From: "Cheong Hee (Gmail)" <email@hidden>)
 >Re: ERJaveMail (From: Mike Schrag <email@hidden>)
 >Re: ERJaveMail (From: "Cheong Hee (Gmail)" <email@hidden>)
 >Re: ERJaveMail (From: Mike Schrag <email@hidden>)
 >Re: ERJaveMail (From: "Cheong Hee (Gmail)" <email@hidden>)

  • Prev by Date: Re: New Tomcat 6 Deployment
  • Next by Date: NullPointerException in EODatabaseContext java
  • Previous by thread: Re: ERJaveMail
  • Next by thread: Re: ERJaveMail
  • Index(es):
    • Date
    • Thread