Hi, I have a form with a field for an email address to be filled in and sent using a php script. i need help with the following
1: i want the an email to be sent to the email address that the user has just typed into the form field.
2: I want to style the resulting message that they receive, to have some text in red, or bold etc, so its not just black text in an email.
The thing is everything I have tried so far just shows the styling code in the email that is sent. here's my code from the sendform.php
<?php
$email = $_REQUEST;
$message = "Thank you for applying for an INSTANT DISCOUNT CODE. \n\n 1a2b3c4d5e \n\n is your discount code, please type it using lowercase letters at the checkout \n\n\n Thanks The Team";
mail ("me@myemailaddress.co.uk", "$email", "$message", "from: the team");
header ("location: http://www.mydomain.co.uk/confirmation.htm");
//mail($to, $subject, $message, $headers);
?>
any help appreciated.
Kevin