Mailer
[ class tree: Mailer ] [ index: Mailer ] [ all elements ]

Source for file mailer.class.php

Documentation is available at mailer.class.php

  1. <?php
  2. /**
  3.  * Email sender
  4.  * 
  5.  * Simple wrapper for php-mailer
  6.  *
  7.  * @author Eric Lamb <eric@ericlamb.net>
  8.  * @version .01
  9.  * @link http://blog.ericlamb.net/
  10.  * @copyright 2008 Eric Lamb
  11.  * @package    Mailer
  12.  * @filesource
  13.  */
  14.  
  15. /**
  16.  * Include php-mailer class
  17.  */
  18. include_once('phpmailer/class.phpmailer.php');
  19.  
  20. /**
  21.  * @package Mailer
  22.  */
  23. class Mailer Extends PHPMailer {
  24.  
  25.     /**
  26.      * Sets the authentication for SMTP
  27.      *
  28.      */
  29.     function __construct(){
  30.         $this->IsSMTP()// telling the class to use SMTP
  31.         $this->Host       = "host"// SMTP server
  32.         $this->SMTPAuth = TRUE;
  33.         $this->Username = 'username';
  34.         $this->Password = 'password';
  35.     }
  36. }
  37. ?>

Documentation generated on Thu, 01 Jan 2009 14:04:18 -0800 by phpDocumentor 1.4.2