Methode :- 1
<?php
$to = "n005nirav@gmail.com";
$subject = "Email Test";
$message = "This is a test";
if (mail($to, $subject, $message))
{
echo("Your email message successfully sent.");
}
else
{
echo("Sorry, message delivery failed. C.");
}
?>
-----------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------
Methode :- 2
<?php
$to = "n005nirav@gmail.com";
$subject = "Your subject ";
$message = "Hello! This is a simple email ";
$from = "nirav@gmail.com";
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
?>
--
/\/ir@\/ <(.'.)>
Home
»
»Unlabelled
» PHP Code For Sending a mail
PHP Code For Sending a mail
21:44
0 comments:
Post a Comment
Thanks for comment