• 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
send component as email
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

send component as email


  • Subject: send component as email
  • From: "WebObjects EMail" <email@hidden>
  • Date: Wed, 4 Feb 2004 14:40:31 +0100

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.

  • Follow-Ups:
    • Re: send component as email
      • From: Denis Stanton <email@hidden>
    • Re: send component as email
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Best Notification Framework
  • Next by Date: Making good EOs
  • Previous by thread: RSS 2.0 Parser for WO?
  • Next by thread: Re: send component as email
  • Index(es):
    • Date
    • Thread