Repeat region in Email
Posted: Mon Jun 20, 2005 9:51 am
Hi,
I have this tell-a-friend script that I will be using, but I have a problem with using a repeat region in the mail() script.
it's pretty simple actually,
The last few lines is where the code is. I can't have this in the repeat
Because then it'll actually show me the repeat region on the page (all I want on that page is "Thank you for using our feature")
So how can I structure it correctly?
Thank you
I have this tell-a-friend script that I will be using, but I have a problem with using a repeat region in the mail() script.
it's pretty simple actually,
Code: Select all
<? $mailcontent = "<style type=\"text/css\">
a.LinkLINK:visited {color: #CC6600; text-decoration: none;}
a.LinkLINK:link {color: #CC6600; text-decoration: none;}
a.LinkLINK:active {color: #CC6600; text-decoration: none;}
a.LinkLINK:hover {color: #FFFFFF; text-decoration: none;}
.Verdana12ptsgray { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #999999;}
.Verdana12ptswhite {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #FFFFFF;}
</style>
<p><table width=\"100%\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#333333\"><tr><td height=\"227\" colspan=\"2\" align=\"left\" valign=\"top\"><img src=\"http://www.mtl-baseline.com/eng/images/tellafriend_ad.gif\" width=\"815\" height=\"227\"></td>
</tr> <tr><td width=\"4%\" align=\"left\" valign=\"top\"><p class=\"Verdana12ptswhite\"><img src=\"http://www.mtl-baseline.com/eng/images/spacer.gif\" width=\"63\" height=\"1\"></p>
</td>
<td width=\"96%\" align=\"left\" valign=\"top\"><p class=\"Verdana12ptswhite\">Hey
$to,</p>
<p><span class=\"Verdana12ptswhite\"><strong>$from</strong></span> <br>
<span class=\"Verdana12ptsgray\">went to <a href='http://www.mtl-baseline.com' class='linkLINK'>www.mtl-baseline.com</a> and
suggests you check out this website.<br>
Here is the link: <a href=\"$referer\" class='linkLINK'>$referer</a></span> <br>
<br>
<span class=\"Verdana12ptswhite\"> <strong>Additional comments by $from:</strong></span><br>
<span class=\"Verdana12ptsgray\">$comments</span></p></td>
</tr>
<tr>
<td height=35 colspan=2 align=\"left\" valign=\"top\"><img src=\"http://www.mtl-baseline.com/eng/images/spacer.gif\" width=\"1\" height=\"35\"></td>
</tr>
<tr align=center valign=middle>
<td height=98 colspan=2><p><span class=\"Verdana12ptsgray\">This email was brought to you by aaa</span></p>";?>
<?php do { ?>
<? "<img src=\"".$img_source."\"" .$width . "\" height=\"" . $height . "\" alt=\"" . ucwords($row_sponsors['name']) . "\">";?>
<?php } while ($row_sponsors = mysql_fetch_assoc($sponsors)); ?><?
"</td>
</tr>
</table></p>";
mail($toemail, $subject, $mailcontent, $fromheaders);Code: Select all
<? "<img src=\"".$img_source."\"" .$width . "\" height=\"" . $height . "\" alt=\"" . ucwords($row_sponsors['name']) . "\">";?>So how can I structure it correctly?
Thank you