Jump to content

stripping html tags from auto response email


tome

Recommended Posts

 

 

 

Hi there I've got a form setup to pass variables from flash to a sql table using php, the php sends the varaibles to the table and sends me and the user notification email. Everything works great but in the email I get forward slashes appearing where the line should break, anyone knows how to strip the html tags in php?

 

Here's the email part of my php script:

 

 

 

<?php

 

if ($REMOTE_ADDR == "") $ip = "no ip";

else $ip = getHostByAddr($REMOTE_ADDR);

 

 

mail("$adminaddress","Info Request",

 

"A visitor at $sitename has left the following information

 

name: $name 

 

address: $address

 

phone: $phone

 

email: $email

 

vemail: $vemail

 

 

Logged Info :

 

------------------------------

 

Using: $HTTP_USER_AGENT

 

Hostname: $ip

 

IP address: $REMOTE_ADDR

 

Date/Time:  $date","FROM:$adminaddress");

 

 

 

mail("$email","Video Contest Submission Confirmation",

 

"Dear $name,

 

Thank you for your submission.

Upon approval it will be available on $siteaddress

for viewing and voting.

 

Good Luck,

 

$sitename

 

$siteaddress","FROM:$adminaddress");

 

 

 

 

?>

 

 

 

thanks in advance

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.