Skip to content

Instantly share code, notes, and snippets.

@hackerrahul
Created December 13, 2018 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hackerrahul/238a8b88876d1b69412c2076dc83ef0c to your computer and use it in GitHub Desktop.
Save hackerrahul/238a8b88876d1b69412c2076dc83ef0c to your computer and use it in GitHub Desktop.
<?php
include 'sendemail.php';
$to = 'recipientemail@gmail.com';
$subject = 'Subject for PHPMailer';
$body = 'here is the demo body for email';
$send = send_mail($to,$subject,$body);
if($send == 1){
echo 'Mail Sent!';
}else{
echo 'Error Sending Mail.';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment