Jump to content

Want to insert a link in this php generate email...need help


perficut

Recommended Posts

I have a registration html form that processes this php file which in turns sends the registrar an email.  I want to include in the BODY of the email a link and possibly a clickable picture but cant figure out the syntax for it.  Can anyone help.

 

 

// Prepare and send Email to member with Login ID and Password Info
$EmailFrom =  "[email protected]";
$EmailTo = Trim(stripslashes($_POST['Email']));
$Subject = "MDSnowRemoval Membership Verification";
// validation
$validationOK=true;
if (Trim($EmailTo)=="") $validationOK=false;
if (!$validationOK) {
  print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";
  exit;
}
// prepare email body text
$Body = "";
$Body .= "WELCOME!  Your registration to MDSnowRemoval.Com has been completed and filed in our records.";
$Body .= "\n";
$Body .= "\n";
$Body .= "Please make note of your login ID and PASSWORD. The login information is case sensitive so be sure to enter it EXACTLY as it appears.";
$Body .= "\n";
$Body .= "\n";
$Body .= "LOGIN ID: ";
$Body .= $LastName;
$Body .= "\n";
$Body .= "PASSWORD: ";
$Body .= $Email;
$Body .= "\n";
$Body .= "\n";
$Body .= "Please Support our affiliated MESSAGE FORUM.  http://www.plowmasters.com";
$Body .= "\n";
$Body .= "You may return to the members page";
$Body .= "";
$Body .= "";    //////WANT TO INSERT "Please support our message forum PlowMasters.Com"//// with either a link or a clickable picture.
$Body .= "";
// send email 
$success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>");

?>

<?php
mail('[email protected]', 'Subject',
    '<html><body><p>Your <i>message</i> here.</p></body></html>',
    "To: The Receiver <[email protected]>\n" .
    "From: The Sender <[email protected]>\n" .
    "MIME-Version: 1.0\n" .
    "Content-type: text/html; charset=iso-8859-1");
?>

from here:

http://www.sitepoint.com/article/advanced-email-php

http://www.sitepoint.com/article/code-html-email-newsletters

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.