Webobjects 5.4 tags in an email component do not work?
Webobjects 5.4 tags in an email component do not work?
- Subject: Webobjects 5.4 tags in an email component do not work?
- From: Johan Henselmans <email@hidden>
- Date: Mon, 6 Jul 2009 22:23:16 +0200
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden