Hello All, I am having some trouble with my HTML email. I can't seem to get this to display the contents of the table. I have tried this a few ways, the header is building but not the contents.
<gel:email from="${sender}" to="${me}" subject="${subject}">
<![CDATA[
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD/>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#800000" ALINK="#FF00FF" BACKGROUND="?">
]]>
<![CDATA[<P ALIGN="left"><B>]]>Dear Project Manager(s),<![CDATA[</B></P>]]>
<![CDATA[<P ALIGN="left">]]>${messageText1}<![CDATA[</P>]]>
<sql:query escapeText="0" var="prj">
<![CDATA[
SELECT pm.full_name
, P.NAME
, P.code
FROM prteam tm
join inv_investments P on tm.prprojectid=tm.prprojectid
JOIN inv_projects inv ON P.ID=inv.prid
JOIN srm_resources pm on p.manager_id=pm.user_id
WHERE P.is_active = 1
AND inv.is_template = 0
and p.is_open_for_te = 1
AND pm.is_active = 1
AND P.manager_id IN (5011208, 5011571, 5011925, 5011933, 5034026, 5039001)
AND tm.prresourceid=5011623
AND tm.prisopen = 1
group by pm.full_name
, P.NAME
, P.code
ORDER BY pm.FULL_name
]]>
</sql:query>
<![CDATA[
<TABLE ALIGN="left" BORDER=1 CELLSPACING=0 CELLPADDING=0 WIDTH="100%">
<TR ALIGN="left" VALIGN="middle">
<TH>]]>Project Manager<![CDATA[</TH>
<TH>]]>Project ID<![CDATA[</TH>
<TH>]]>Project Name<![CDATA[</TH>
</TR>]]>
<core:forEach items="${prj.rows}" var="row">
<core:set var="proj_manager" value="${row.proj_manager}"/>
<core:set var="proj_id" value="${row.proj_id}"/>
<core:set var="proj_name" value="${row.proj_name}"/>
<![CDATA[
<TR ALIGN="left" VALIGN="middle">
<TD>]]>${proj_manager}<![CDATA[</TD>
<TD>]]>${proj_id}<![CDATA[</TD>
<TD>]]>${proj_name}<![CDATA[</TD>
</TR>
</TABLE>]]>
</core:forEach>
<![CDATA[
</BODY>
</HTML>
]]>
</gel:email>
Or this way
<gel:email from="${sender}" subject="${subject}" to="${me}">
<P ALIGN="left"><B>
Dear Project Manager(s),</B></P>
<P ALIGN="left">${messageText1}</P>
</br></br>
<sql:query escapeText="0" var="prj">
SELECT pm.full_name
, P.NAME
, P.code
FROM prteam tm
join inv_investments P on tm.prprojectid=tm.prprojectid
JOIN inv_projects inv ON P.ID=inv.prid
JOIN srm_resources pm on p.manager_id=pm.user_id
WHERE P.is_active = 1
AND inv.is_template = 0
and p.is_open_for_te = 1
AND pm.is_active = 1
AND P.manager_id IN (5011208, 5011571, 5011925, 5011933, 5034026, 5039001)
AND tm.prresourceid=5011623
AND tm.prisopen = 1
group by pm.full_name
, P.NAME
, P.code
ORDER BY pm.FULL_name
</sql:query>
<TABLE ALIGN="left" BORDER=1 CELLSPACING=0 CELLPADDING=0 WIDTH="100%">
<TR ALIGN="left" VALIGN="middle">
<TH>Project Manager</TH>
<TH>Project ID</TH>
<TH>Project Name</TH>
</TR>
<core:forEach trim="true" items="${prj.rows}" var="row">
<core:set var="proj_manager" value="${row.proj_manager}"/>
<core:set var="proj_id" value="${row.proj_id}"/>
<core:set var="proj_name" value="${row.proj_name}"/>
<TR ALIGN="left" VALIGN="middle">
<TD>${proj_manager}</TD>
<TD>${proj_id}</TD>
<TD>${proj_name}</TD>
</TR>
</core:forEach>
</TABLE>
</br></br>
</br></br>
</gel:email>
Both of these display this way.
I am not sure what i am doing wrong on these. Any help would be greatly appreciated.
Keri