PHP Classes

File: ExampleFile.php

Recommend this page to a friend!
  Classes of Ángel Manso Pérez   PHPMailer Easy   ExampleFile.php   Download  
File: ExampleFile.php
Role: Example script
Content type: text/plain
Description: How to use PHPMailerEasy
Class: PHPMailer Easy
Simple wrapper to send messages using PHPMailer
Author: By
Last change:
Date: 7 years ago
Size: 205 bytes
 

Contents

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