smtp server

 <?php

    ini_set( 'display_errors', 1 );

    error_reporting( E_ALL );

    $from = "test@hostinger-tutorials.com";

    $to = "djkanha044@gmail.com";

    $subject = "Checking PHP mail";

    $message = "gooog fine";

    $headers = "From:" . $from;

    if(mail($to,$subject,$message, $headers)) {

echo "The email message was sent.";

    } else {

    echo "The email message was not sent.";

    }

     <?php


    ini_set( 'display_errors', 1 );


    error_reporting( E_ALL );


    $from = "test@hostinger-tutorials.com";


    $to = "djkanha044@gmail.com";


    $subject = "Checking PHP mail";


    $message = "gooog fine";


    $headers = "From:" . $from;


    if(mail($to,$subject,$message, $headers)) {


echo "The email message was sent.";


    } else {


    echo "The email message was not sent.";


    }


    


    ?>

    ?>

Post a Comment

0 Comments