I am trying to modify a "send this page to a friend" script and have run into a problem. The link that is sent is extremely long and soemtime wraps in the email client and is disabled. To work around this, I want to create a hyperlink and use the link as the href. and "click here" as the link. Something is wrong with the syntax I am trying...
$link is the url variable that is passed...
Thanks,
Rick
Ive included the zip file which contans the 2 php pages. Below is the attempt I made at modifying it. The second line was originally (and works but is too long):
<?
mail("$email", "Your website","Hi $name !, $sendername at $senderemail wanted you to read this article at $link.",
<?
mail("$email", "Your website","Hi $name !, $sendername at $senderemail wanted you to read this article at <a href="$link">Click here</a>.", "from: $mailheaders\"$sendername\" $senderemail\n");
echo "<div align=\"center\"><table width=\"96%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" ";
echo "style=\"font-size:11pt;font-color:black;\">";
echo "<tr height=\"40\" align=center><td><p> </p></td></tr>";
echo "<tr><td >An e-mail with the link was sent to <font color=#ED1820 >$name</font> at <a href=\"mailto:$email\">$email</a> from <font color=#ED1820 >$sendername</font> at <a href=\"mailto:$senderemail\">$senderemail</a>, now also <font color=#ED1820 >$name</font> your friend ";
echo " will know about the link <a href=$link target=_blank>$link </a></td></tr>";
echo "</table></div>";
?>