Tuesday, August 3, 2021

Sending an Email Using PHP

 A simple program that I wrote that will send an email using PHP programming language.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website, kindly contact me also at my email address also. Thank you.

My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.







Program Listing

email.php


<?php

   $to_email = "jakerpomperada@gmail.com";

   $subject = "Sending Email Using PHP"; 

   $body = "Hi,Jake This is just an email test using mail function in PHP";

   $headers = "From: jakerpomperada@ajsoftware.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