Friday, December 13, 2019

php mailer

<?php
   $to_email = "recipient@example.com";
   $subject = "Simple Email Test via PHP";
   $body = "Hi,nn This is test email send by PHP Script";
   $headers = "From: sender@example.com";

   if ( mail($to_email, $subject, $body, $headers)) {
      echo("Email successfully sent to $to_email...");
   } else {
      echo("Email sending failed...");
   }
?>

No comments:

Post a Comment

php udate results code

CREATE A FILE NAME IT update.php <?php session_start(); // Include config file require_once "config.php"; // Define ...