Re: send component as email
Re: send component as email
- Subject: Re: send component as email
- From: Chuck Hill <email@hidden>
- Date: Wed, 04 Feb 2004 07:50:29 -0800
Google is a wonderful thing.
http://www.omnigroup.com/mailman/archive/webobjects-dev/2002-June/024271.html
Chuck
At 02:40 PM 04/02/2004 +0100, WebObjects EMail wrote:
>hello,
>i just try to create a component to send it per Email how can i do that?
>
>i created a simple java class and call it in the Application constroctor
like
>that
>
>
>public Application() {
>
>super();
>
>robotSMail r = new robotSMail();
>
>}
>
>public class robotSMail {
>
> public robotSMail()
>
> {
>
> MessageBody body = new MessageBody();
>
> WOMailDelivery mailAgent = WOMailDelivery.sharedInstance();
>
> System.out.println("\n\n\nread : "+mailAgent.toString() );
>
> mailAgent.composeComponentEmail
>
> (
>
> "email@hidden",
>
> new NSArray(new String[]
>{"email@hidden"} ),
>
> null,
>
> "Subject",
>
> body,
>
> true
>
> );
>
> }
>
>}
>
>MessageBody class is a WOComponent.
>if i use MessageBody() i get Error The constructor MessageBody() is
>undefined.
>i dont need any session, context, etc..
>
>thenks for help.
>_______________________________________________
>webobjects-dev mailing list | email@hidden
>Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
>Do not post admin requests to the list. They will be ignored.
>
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.