| Ratings |   | Unique User Downloads |   | Download Rankings | 
    59% |  | Total: 392  |  | All time:  6,641 This week: 140  | 
 | 
| 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.  |  | 
 
  | 
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.
 
 
|   | 
Applications that use this package | 
  | 
No pages of applications that use this class were specified.
 If you know an application of this package, send a message to the author to add a link here.