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

Comments

Popular posts from this blog

How to get column value from the selected row in data grid in wpf c#.net

How to make and use web service in Microsoft Dynamics Navision.

How to use Format function in Microsoft Dynamics Navision.