Mail script not filling subject
Posted: Wed Jan 10, 2007 10:36 am
I used the "mail to friend" written in another post, but find the script not filling the subject-line with the data expected.
I created the following code in a UDT called "rk_mail":
If I press the button in my template, outlook starts, but with an empty mail-screen.
I created the following code in a UDT called "rk_mail":
and called it in a page usingfunction curPageURL() {
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
return $pageURL;
}
echo '';
Code: Select all
{rk_mail}