Source for file internal_mail.class.php

Documentation is available at internal_mail.class.php

  1. <?php   /*
  2.    *@=@=@=@ START LICENSE @=@=@=@*
  3.    Copyright or © or Copr. Stéphane TRICHET and Nicolas SOTRON
  4.    
  5.    stephane.t@simpliciweb.net and nicolas.s@simpliciweb.net
  6.    
  7.    This software is a computer program whose purpose is to make a
  8.    web hosting platform
  9.    
  10.    This software is governed by the CeCILL  license under French law and
  11.    abiding by the rules of distribution of free software.  You can  use, 
  12.    modify and/ or redistribute the software under the terms of the CeCILL
  13.    license as circulated by CEA, CNRS and INRIA at the following URL
  14.    "http://www.cecill.info". 
  15.    
  16.    As a counterpart to the access to the source code and  rights to copy,
  17.    modify and redistribute granted by the license, users are provided only
  18.    with a limited warranty  and the software's author,  the holder of the
  19.    economic rights,  and the successive licensors  have only  limited
  20.    liability. 
  21.    
  22.    In this respect, the user's attention is drawn to the risks associated
  23.    with loading,  using,  modifying and/or developing or reproducing the
  24.    software by the user in light of its specific status of free software,
  25.    that may mean  that it is complicated to manipulate,  and  that  also
  26.    therefore means  that it is reserved for developers  and  experienced
  27.    professionals having in-depth computer knowledge. Users are therefore
  28.    encouraged to load and test the software's suitability as regards their
  29.    requirements in conditions enabling the security of their systems and/or 
  30.    data to be ensured and,  more generally, to use and operate it in the 
  31.    same conditions as regards security. 
  32.    
  33.    The fact that you are presently reading this means that you have had
  34.    knowledge of the CeCILL license and that you accept its terms.
  35.    *@=@=@=@ END   LICENSE @=@=@=@*
  36.  
  37. */?><?php  
  38. /**
  39.  * InternalMail Class
  40.  * 
  41.  * 
  42.  * @author SimpliciWeb
  43.  * @version $Id: internal_mail.class.php 606 2007-07-19 10:14:30Z stephanet $
  44.  * @package Common
  45.  * @subpackage FrameWork
  46.  */    
  47. /**
  48.  * Require xPliciMail.class.php
  49.  */
  50. require_once('xPliciMail.class.php');
  51. /**
  52.  * Send an internalMail to Super admin emails
  53.  *
  54.  * @author SimpliciWeb
  55.  * @version $Id: internal_mail.class.php 606 2007-07-19 10:14:30Z stephanet $
  56.  * @package Common
  57.  * @subpackage FrameWork
  58.  */
  59.     class InternalMail extends xPliciMail {
  60.     
  61.         /**
  62.          * Constructor, init the requests and objects
  63.          *
  64.          * @return InternalMail 
  65.          */
  66.         function InternalMail({
  67.             
  68.             parent::xPliciMail(true);
  69.             
  70.             global $g_object_loader;
  71.             $object_internalmail =$g_object_loader->getTInternalMail();
  72.             $this->setRecipients($object_internalmail->getValueOf("RECIPIENTS"""));
  73.             
  74.         }
  75.  
  76.         /**
  77.          * Set from
  78.          *
  79.          * @param string $p_mail_from 
  80.          */
  81.         function setFrom($p_mail_from{
  82.             $this->setFromEmail($p_mail_from)
  83.             $this->setFromName($p_mail_from);
  84.         }
  85.  
  86.         /**
  87.          * Send email
  88.          *
  89.          * @param string $p_subject 
  90.          * @param string $p_content 
  91.          * @return bool TRUE on error
  92.          */
  93.         function send($p_subject$p_content{
  94.             
  95.             $this->setSubject($p_subject);
  96.             
  97.             return $this->xSend($p_content);;
  98.         
  99.         }
  100.         
  101.     
  102.     }
  103.  
  104. ?>

Documentation generated on Tue, 25 Mar 2008 15:35:10 +0100 by phpDocumentor 1.3.2