gilbertsavier
Newbie
Posts: 1
Registered: 6/26/2009
Location: india
Member Is Offline
|
| posted on 6/26/2009 at 05:58 AM |
|
|
Send Email from a PHP Script Example
The first argument to this function is the recipient, the second specifies the message's subject and the third one should contain the body. So to
send a simple sample message, we could use:
<?php
$to = "recipient@example.com";
$subject = "Hi!";
$body = "Hi,nnHow are you?";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>
Thanks & Replay,
Lokananth
Live chat
http://www.mioot.com
|
|
|
|