Page 1 of 1

Mail script not filling subject

Posted: Wed Jan 10, 2007 10:36 am
by RonnyK
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":
function 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 '';
and called it in a page using

Code: Select all

{rk_mail}
If I press the button in my template, outlook starts, but with an empty mail-screen.

Re: Mail script not filling subject

Posted: Wed Jul 23, 2008 12:28 pm
by julesdender
You should use this:

<a href="mailto:?subject=I thought you\'d be interested...&body=I thought