• 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: Tue, 24 May 2005 08:49:18 -0600


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


  • Prev by Date: Re: porting methodology
  • Next by Date: RE: EOModeler / mySQL problems
  • Previous by thread: How to use WOTimer to send a Component-based email?
  • Next by thread: Re: How to use WOTimer to send a Component-based email?
  • Index(es):
    • Date
    • Thread