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 use serial.write() in Arduino.

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

How to Generate random rows in dataset using c#.net