Always prodding forwards, I had a emailcomponent with some old fashioned tags:

a HTML file containing

====================================
<webobjects name= ShowName>
====================================

and a WOD file containing

====================================
ShowName : WOString {
  value = cartItem.performance.showInfo.showName;
}
====================================

So I replaced with a component that consisted of a HTML file containing

====================================
<wo:WOString value = "[cartItem.performance.showInfo.showName]"/>
====================================

and an empty wod file.

The result was that I got a nice mail message containing the complete HTML as such:

====================================
<wo:WOString value = "[cartItem.performance.showInfo.showName]"/>
====================================

which meant that it did no display as it could not display the HTML message.

Reverting to the old, fashioned way gave a nice display of the show I was supposed to be attending.

Anybody any explanation what I am doing wrong? Radar?

BTW: to send the message I am using

====================================
public WOComponent pageForMail()
{
EmailComponent nextPage = (EmailComponent)pageWithName("EmailComponent");
        return nextPage;
}


public void sendTheMail()
WOMailDelivery md = WOMailDelivery.sharedInstance();
md.composeComponentEmail(EmailFrom , (NSArray)mailTos, null,"Confirmation of Reservation" , pageForMail(), true );
}
====================================





Regards,

Johan Henselmans
http://www.netsense.nl
Tel: +31-20-6267538
Fax: +31-20-6279159



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to