Jump to content

mail problem


nelquintin

Recommended Posts

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.