01
Oct
2007
2007
sending mail with php
sending mail using php script is so easy:
<?php
$to = “email@example.com”;
$subject = “Hi there!”;
$body = “Hi,\n\nThis is a test msg”;
if (mail($to, $subject, $body)) {
echo(”<p>Message successfully sent!</p>”);
} else {
echo(”<p>Message delivery failed…</p>”);
}
?>










