nelquintin Posted April 26, 2007 Share Posted April 26, 2007 im trying to send a email with html as well as php.sending the email is the easy part.the problem is with the message part.if i put this code in the textarea it display the html tags in the email.yet the php is fine. # <form action="mail.php" method="POST" enctype="multipart/form-data"> To: <input type="text" name="to" value="<?echo $email?>" /><br /> From: <input type="text" name="from" value="" /><br /> Subject: <input type="text" name="subject" value="Property Enquiry" /></p> <br> Should you wish to view any of these properties please dont hesitate to call us.Please click on the link to find out more about the property.<br> R<?php echo $price = $row["price"];?><br> Reference #<?php echo $ref = $row["ref"];?><br> <?php echo $description = $row["description"];?><br> Bedrooms: <?php echo $bed = $row["bed"];?><br> Bathrooms: <?php echo $bath = $row["bath"];?><br> Garages: <?php echo $gar = $row["gar"];?><br> <a href="http://localhost/vap/moredetails.php?ref=<?php echo urlencode($ref); ?>" "More Details"> Click here for more details</a> <p>File Attachment: <input type="file" name="fileatt" /></p> <p><input type="submit" value="Send" /></p> </form> #if i call it $message and put in to php qoutes then the php dont work and it doesnt send the message bit. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.