email links with pre-defined subject?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • T Scott
    Corporal

    • Aug 2007
    • 19

    email links with pre-defined subject?

    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
  • Tom vR
    Brigadier General

    • Apr 2007
    • 1731

    #2
    Re: email links with pre-defined subject?

    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
    Bless you
    Tom

    Comment

    • Watdaflip
      Major General

      • Sep 2005
      • 2116

      #3
      Re: email links with pre-defined subject?

      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

      Comment

      Working...
      X