PHP Classes

PHPMailer Easy: Simple wrapper to send messages using PHPMailer

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 59%Total: 391 This week: 1All time: 6,642 This week: 560Up
Version License PHP version Categories
phpmailer-easy 1.0.0GNU General Publi...5Email
Description 

Author

This class is a simple wrapper to send messages using PHPMailer.

It just takes a message subject, recipient address and body text and sends the message using PHPMailer.

The class encodes the message text to send it as HTML via a given SMTP server.

Picture of 聲gel Manso P廨ez
  Performance   Level  
Name: 聲gel Manso P廨ez <contact>
Classes: 3 packages by
Country: Spain Spain
Age: 32
All time rank: 225856 in Spain Spain
Week rank: 411 Up13 in Spain Spain Up

Example

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


Details

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";
}
?>

!t's simply to use!

Dependencies

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


  Files folder image Files  
File Role Description
Accessible without login Plain text file ExampleFile.php Example How to use PHPMailerEasy
Accessible without login Plain text file LICENSE Lic. License text
Plain text file PHPMailerEasy.php Class Class source
Accessible without login Plain text file README.md Doc. Documentation

Downloadphpmailer-easy-2017-02-02.zip 13KB
Downloadphpmailer-easy-2017-02-02.tar.gz 13KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
PHPMailer Download .zip .tar.gz PHPMailerEasy is an extension of PHPMailer Required
 Version Control Unique User Downloads Download Rankings  
 75%
Total:391
This week:1
All time:6,642
This week:560Up
User Ratings User Comments (1)
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:66%StarStarStarStar
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:1334
 
really simple and useful
5 years ago (Luiz Antonio Souza Ribeiro)
77%StarStarStarStar