Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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
You can’t perform that action at this time.