-
is there a way to format text that has been emailed from a php script bold? for example in the php code below i want the “SENDER:” to be emailed bold so it stands out more.
-
i have the php mail form below working, but i need to change the time… it is ahead 2 hours i need it to be pacific time (california) … any ideas on how to change that?
-here is the php-
<?
$to = "my@email.com";
$name = $_POST['name'];
$email = $_POST['email'];
$comments = $_POST['comments'];
$subject = "fairtrade site comments";
$Today = (date ("l dS of F Y ( h:i:s A )",time()));
$message = "$Today
";
$message .= "message result of contact form
";
$message .= "--------------------------------------------------------
";
$message .= "SENDER :
";
$message .= "$name - $email
";
$message .= "--------------------------------------------------------
";
$message .= "COMMENTS :
";
$message .= "$comments
";
$message .= "--------------------------------------------------------
";
$header = "from: $name ($email)";
mail($to, $subject, $message, $header);
?>
here is what the form returns (email)
Tuesday 23rd of March 2004 ( 08:58:09 AM )
message result of contact form
--------------------------------------------------------
SENDER :
Senders Name - senders@email.com
--------------------------------------------------------
COMMENTS :
senders comments
--------------------------------------------------------
thanks in advance
brian