Hi,
I am trying to debug the email template I wrote for the email body, but to no avail.
The error I get is as follow (through the email debug log) :
XML parse error:
not well-formed (invalid token) at line 2, column 3, byte 11 at /app/teamsite/iw-home/iw-perl/vendor/lib/XML/Parser.pm line 187
Below is the code which invokes this:
Task which invokes the email command code:
&declare_task('preview_web',
name => "Preview static homepage",
description => "Preview static homepage",
type => 'externaltask',
areavpath => $iw_workarea,
owner => $iw_author,
command => qq($emailCmd),
variables => {
'iw_mailheader_pt' => "$thisLocation/email/preview_header.tpl",
'iw_mailbody_pt' => "$thisLocation/email/preview_body.tpl",
},
);
Actual code for body of the email:
<iw_pt>
<![ CDATA[
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Author Email Notification</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<LINK href="{iw_value name='$url_styles'/}/styles.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY text="#000000" bgColor="#ffffff">
<TABLE cellSpacing=0 cellPadding=1 width="100%" border=0>
<TBODY>
<TR>
<TD bgColor="#003366">
<TABLE cellSpacing=0 cellPadding=7 width="100%" border=0>
<TBODY>
<TR>
<TD class=txt bgColor="#ffffff"> <span class="hnews"><IMG
src="{iw_value name='$url_image'/}/pblogosm.gif"
width=60 height=19 align="right">TeamSite Preview Notification(<iw_value name='dcr.workflowinformation.task[1]
@id'/>)</span>
</TD>
</TR>
<TR>
<TD class=txt bgColor="#ffffff">
<p></p>
<BR>
</TBODY></TABLE></TD></TR></TBODY></TABLE>
<P>.</P></BODY></HTML>
]]>
</iw_pt>
The header works fine, it's the body that causes the problem.
Thanks,
Ido