PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Ángel Manso Pérez   PHPMailer Easy   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHPMailer Easy
Simple wrapper to send messages using PHPMailer
Author: By
Last change:
Date: 7 years ago
Size: 462 bytes
 

Contents

Class file image Download

phpmailer-easy

A easy way to send mail with phpmailer

How-to

You only need to include the file in one page. Then, call the function like:

<?php
include("PHPMailerEasy.php");
$send = PHPMailerEasy::Email($to, $subject, $text);
if($send == "ok") {
  echo "Message was sent successfully";
} else {
  echo "Can't send message";
}
?>

ˇIt's simply to use!

Dependencies

You need to have PHPmailer in a folder called /phpmailer/ to make it works.