Re: setting properties ??

2011-10-29 Thread Johann Werner
Hi Ted, I am doing this if I want different settings from the application properties: ERJavaMail jm = ERJavaMail.sharedInstance(); Properties props = jm.defaultSession().getProperties(); props.put(mail.smtp.host, smtpHost); props.put(mail.smtp.auth, smtpAuth); props.put(mail.smtp.user,

Re: Component based email without a context

2011-10-29 Thread Ken Anderson
Thanks Paul. Unfortunately, currentContext() will return null, since this will not be running inside a request/response loop. I'm probably just going to create a context to use… Ken On Oct 28, 2011, at 6:51 PM, Paul Hoadley wrote: Hi Ken, On 26/10/2011, at 11:40 PM, Ken Anderson wrote:

Re: Validating Email

2011-10-29 Thread Theodore Petrosky
My spam filter swallows and drops (with no bounce) any mail to an unknown address. you could send an email that has a link to an image on your server. then when the request for the image comes in you know the receiver looked at the email. I know some spam filter settings block this kind of

Re: ERAttachments, S3, and dynamic configurations

2011-10-29 Thread Matthew Ness
Hi Jesse, seems like that's worth a patch of code to wonder, no? Perhaps, but not in its current form, as it's quite specific. I think a lot of people have diverging implementations that could use consolidation and I'd like to move to something more common between everyone myself, so I'd

Re: Component based email without a context

2011-10-29 Thread Paul Hoadley
On 29/10/2011, at 10:42 PM, Ken Anderson wrote: Thanks Paul. Unfortunately, currentContext() will return null, since this will not be running inside a request/response loop. I'm probably just going to create a context to use… Oh, sorry Ken. I obviously didn't read your original post

Re: Component based email without a context

2011-10-29 Thread Chuck Hill
I use this in tests: testContext = new WOContext(new WORequest(GET, http://localhost/cgi-bin/WebObjects;, HTTP/1.1, null, null, null)); Not sure offhand what additional information might be needed to generate your email content. Chuck On 2011-10-29, at 10:09 PM, Paul Hoadley wrote: On