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

Source for file Sendmail.php

Documentation is available at Sendmail.php

  1. <?php
  2. /**
  3. * DotBoost Technologies Inc.
  4. * DotKernel Application Framework
  5. *
  6. @category   DotKernel
  7. @package    DotLibrary
  8. @copyright  Copyright (c) 2009 DotBoost  Technologies (http://www.dotboost.com)
  9. @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  10. @version    $Id: Sendmail.php 141 2010-06-03 12:20:52Z teo $
  11. */
  12.  
  13. /**
  14. * Default server mail() class
  15. @category   DotKernel
  16. @package    DotLibrary
  17. @subpackage DotEmail
  18. @author     DotKernel Team <team@dotkernel.com>
  19. */
  20.  
  21. class Dot_Email_Sendmail extends Dot_Email
  22. {
  23.     /**
  24.      * Email constructor
  25.      * @access public
  26.      * @param string $fromEmail [optional]
  27.      * @return Dot_Email_Sendmail 
  28.      */
  29.     public function __construct($fromEmail null)
  30.     {
  31.         $this->transport new Zend_Mail_Transport_Sendmail('-f'.$fromEmail);
  32.     }
  33.     /**
  34.      * Return the transporter
  35.      * @access public
  36.      * @return Zend_Mail_Transport_Sendmail 
  37.      */
  38.     public function getTransport()
  39.     {
  40.         return $this->transport;
  41.     }
  42. }

Documentation generated on Wed, 21 Jul 2010 07:34:42 +0000 by phpDocumentor 1.4.3