• 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: How to use WOTimer to send a Component-based email?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use WOTimer to send a Component-based email?


  • Subject: Re: How to use WOTimer to send a Component-based email?
  • From: Brendan Duddridge <email@hidden>
  • Date: Wed, 25 May 2005 02:15:28 -0600

Hi Nick,

Oops. I just realized that you didn't really need the WOApplication line. I must have copied too much from my source code.

I'm glad that helped you.

____________________________________________________________________
Brendan Duddridge | CTO | 403-277-5591 x24 |  email@hidden

ClickSpace Interactive Inc.
Suite L100, 239 - 10th Ave. SE
Calgary, AB  T2G 0V9

http://www.clickspace.com

On May 24, 2005, at 11:23 PM, Mac Dev wrote:

Hi Brendan,

Yes it works!  Thank you so much for your help!

WO is like drugs. I just can't get enough of it! (WO that is, not drugs).

Thanks again,

Nick


On May 24, 2005, at 7:49 AM, Brendan Duddridge wrote:




Hi WOaficionados,

I am trying to use WOTimer in my Application to send a Component-
based email (using ERJavaMail) in a predefined interval.  But a
WOComponent for the Component-based email requires a WOContext which
I don't have since I am doing this in a WOApplication.  So should I
manually create a Request to get a Context so I can create the
Component for the mail page I send?

I have googled for examples, but was not able to come up with
anything.  Am I going about this the wrong way?  Should I look at
this from some other angles?

Thank you very much.

Regards,

Nick Yang




Hi Nick,

Here's some code that might help you:

Application app = (Application) Application.application();
WOContext context = new WOContext(new WORequest("GET", "/", "HTTP/ 1.1", null, null, null));



____________________________________________________________________ Brendan Duddridge | CTO | 403-277-5591 x24 | email@hidden

ClickSpace Interactive Inc.
Suite L100, 239 - 10th Ave. SE
Calgary, AB  T2G 0V9

http://www.clickspace.com









_______________________________________________ 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
References: 
 >Re: How to use WOTimer to send a Component-based email? (From: Brendan Duddridge <email@hidden>)

  • Prev by Date: Strange fatal error EOModel
  • Next by Date: Re: Webobjects, Tiger and xcode2
  • Previous by thread: Re: How to use WOTimer to send a Component-based email?
  • Next by thread: Re: WOA, Building a Login form
  • Index(es):
    • Date
    • Thread