Anyone know how to set up an email link with predefined subject and body text? I searched the forum and couldn't find a way.
Thanks,
Tim
Anyone know how to set up an email link with predefined subject and body text? I searched the forum and couldn't find a way.
Thanks,
Tim
This is the help I've got a couple of months ago when I started. I'm sure it will help you too. Tell-a-friend email populated
Might get a little technical but
1) Make your form into a php page.
2) Place this code so its before the <html> tag
<?
$define = $_GET['defined'];
if($define == "TRUE")
{
$subject = "This is the first predefined subject";
$message = "This is the first predefined subject";
}
?>
3) In the form field for the subject, set the "value" to "<?=$subject?>", and for the body set it to "<?=$message?>"
4) Make your link to the form http://www.yoursite.com/contact.php?defined=TRUE
The text I highlighted in blue and red can be changed to whatever you want (as well as the green), but the blue and red has to match each other (whatever you change it to if you do change it, you don't have to change anything except the green).
I hope that helps
Register/Login Script
Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script
There are currently 1 users browsing this thread. (0 members and 1 guests)