hi there,
I am using this code that is used for a form, that gets sent to an email address, but i would like to be able to send this form to multiple email addresses instead of the one, does anyone know what to do?
<?php
$myemail = "somebody@tiscali.co.uk";
if (!isset($_POST))
{
echo "Somebody Goofed $ip" ;
}
else
{
$todayis = date("l, F j, Y, g:i a") ;
$subject = "Enquiry" ;
$message = $todayis . " [EST] \n
Email: ".$_POST['email']." \n
Address: ".$_POST['address']." \n
Phone: ".$_POST['phone']." \n
Fax: ".$_POST['fax']." \n
Name: ".$_POST['name']." (".$_POST['message'].")\n";
$from = "From: $myemail\r\n";
if ($myemail != "")
{
mail($myemail, $subject, $message, $from);
}
}
?>
thanks
edd
I am using this code that is used for a form, that gets sent to an email address, but i would like to be able to send this form to multiple email addresses instead of the one, does anyone know what to do?
<?php
$myemail = "somebody@tiscali.co.uk";
if (!isset($_POST))
{
echo "Somebody Goofed $ip" ;
}
else
{
$todayis = date("l, F j, Y, g:i a") ;
$subject = "Enquiry" ;
$message = $todayis . " [EST] \n
Email: ".$_POST['email']." \n
Address: ".$_POST['address']." \n
Phone: ".$_POST['phone']." \n
Fax: ".$_POST['fax']." \n
Name: ".$_POST['name']." (".$_POST['message'].")\n";
$from = "From: $myemail\r\n";
if ($myemail != "")
{
mail($myemail, $subject, $message, $from);
}
}
?>
thanks
edd