Breaking News
Loading...
Saturday 9 February 2013

PHP Code For Sending a mail

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@\/  <(.'.)>

0 comments:

Post a Comment

Thanks for comment

 
Toggle Footer