[ Index ]

MailPress 544

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/Swiftmailer/classes/Swift/Transport/ -> SimpleMailInvoker.php (source)

   1  <?php
   2  
   3  /*
   4   * This file is part of SwiftMailer.
   5   * (c) 2004-2009 Chris Corbyn
   6   *
   7   * For the full copyright and license information, please view the LICENSE
   8   * file that was distributed with this source code.
   9   */
  10  
  11  /**
  12   * This is the implementation class for {@link Swift_Transport_MailInvoker}.
  13   *
  14   * @author     Chris Corbyn
  15   */
  16  class Swift_Transport_SimpleMailInvoker implements Swift_Transport_MailInvoker
  17  {
  18      /**
  19       * Send mail via the mail() function.
  20       *
  21       * This method takes the same arguments as PHP mail().
  22       *
  23       * @param string $to
  24       * @param string $subject
  25       * @param string $body
  26       * @param string $headers
  27       * @param string $extraParams
  28       *
  29       * @return bool
  30       */
  31      public function mail($to, $subject, $body, $headers = null, $extraParams = null)
  32      {
  33          if (!ini_get('safe_mode')) {
  34              return @mail($to, $subject, $body, $headers, $extraParams);
  35          } else {
  36              return @mail($to, $subject, $body, $headers);
  37          }
  38      }
  39  }


Generated: Thu Apr 28 18:38:52 2016 Cross-referenced by PHPXref 0.7.1