Webobjects 5.4 tags in an email component do not work?

2009-07-06 Thread Johan Henselmans
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  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Webobjects 5.4 tags in an email component do not work?

2009-07-06 Thread Andrew Lindesay

Hello Johan;

I could be wrong, but does the new component template format require  
XHTML/XML markup?


cheers.

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


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



___
Andrew Lindesay
www.lindesay.co.nz

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

This email sent to arch...@mail-archive.com


Re: Webobjects 5.4 tags in an email component do not work?

2009-07-06 Thread Johan Henselmans


On 6 jul 2009, at 22:27, Andrew Lindesay wrote:


Hello Johan;

I could be wrong, but does the new component template format require  
XHTML/XML markup?


cheers.

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


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



___
Andrew Lindesay
www.lindesay.co.nz



I am not to sure either.

To be on the safe side I added:


!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;

html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
head
meta http-equiv=Content-Type content=text/html; charset=utf-8/
=

But I noticed that in the file that I got from the mailer the mime  
type said:


=
Message-ID: 12880749.1.1246877561166.javamail.localad...@rolex.timerot.nl 

Subject: Bevestiging reservering Ostadetheater voor Actie Teddy op  
zondag 06

september 2009 om 21:45 uur
MIME-Version: 1.0
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;

html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
head
meta http-equiv=Content-Type content=text/html; charset=utf-8/
TITLEMail bevestiging/TITLE
=

Could it be that WOMailDelivery is not able to proces XHTML1.0?

Should I use HTML 4.01?


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  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com