Menu
php email :
tutorial
[url]http://www.w3schools.com/PHP/php_mail.asp
[CODE]
<?php
$to = “[email protected]”;
$subject = “Test mail”;
$message = “Hello! This is a simple email message.”;
$from = “[email protected]”;
$headers = “From: $from”;
mail($to,$subject,$message,$headers);
echo “Mail Sent.”;
?>
is this correct ? see they have $headers = “From: $from” in the above ….i think this is wrong because the whole thing is under quote.
whereas i was thinking something like this ….$headers = “From:”. $from;
// used concat operator
what say ?
Edit/Delete Message