Overview

Namespaces

  • GLFramework
    • Cache
    • Controller
    • DaMa
      • Manipulators
    • Database
    • HTTP
    • Mail
    • Middleware
    • Model
    • Module
    • Tests
    • Upload
    • Utils
  • None

Classes

  • GLFramework\Bootstrap
  • GLFramework\Cache\Cache
  • GLFramework\Cache\MemcachedCache
  • GLFramework\Cache\MemoryCache
  • GLFramework\Controller
  • GLFramework\Controller\AdminController
  • GLFramework\Controller\APIController
  • GLFramework\Controller\AuthController
  • GLFramework\Controller\ErrorController
  • GLFramework\Controller\ExceptionController
  • GLFramework\DaMa\Association
  • GLFramework\DaMa\DataManipulation
  • GLFramework\DaMa\Manipulator
  • GLFramework\DaMa\Manipulators\CSVManipulator
  • GLFramework\DaMa\Manipulators\ManipulatorCore
  • GLFramework\DaMa\Manipulators\XLSManipulator
  • GLFramework\DaMa\Manipulators\XLSXManipulator
  • GLFramework\Database\Connection
  • GLFramework\Database\MySQLConnection
  • GLFramework\DatabaseManager
  • GLFramework\DBStructure
  • GLFramework\Events
  • GLFramework\Filesystem
  • GLFramework\HTTP\API
  • GLFramework\Log
  • GLFramework\Mail
  • GLFramework\Mail\Mail
  • GLFramework\Mail\MailSystem
  • GLFramework\Mail\PHPMailer
  • GLFramework\MailView
  • GLFramework\Middleware\APIAuthorizationMiddleware
  • GLFramework\Middleware\ControllerMiddleware
  • GLFramework\Model
  • GLFramework\Model\Page
  • GLFramework\Model\User
  • GLFramework\Model\UserPage
  • GLFramework\ModelResult
  • GLFramework\Module\Module
  • GLFramework\Module\ModuleManager
  • GLFramework\Request
  • GLFramework\Response
  • GLFramework\Tests\DatabaseTestCase
  • GLFramework\Tests\TestCase
  • GLFramework\Upload\Upload
  • GLFramework\Upload\Uploads
  • GLFramework\Utils\DataTablesManager
  • GLFramework\Versions
  • GLFramework\View

Interfaces

  • GLFramework\Middleware

Functions

  • array_merge_recursive_ex
  • e
  • file_get_php_classes
  • fix_date
  • fix_date_format
  • fix_decimal
  • fix_url
  • get
  • get_php_classes
  • http_response_code
  • instance_method
  • is_module_enabled
  • now
  • post
  • print_array
  • print_brief_debug
  • print_debug
  • random_str
  • reArrayFiles
  • reArrayPost
  • today
  • Overview
  • Namespace
  • Class
 1: <?php
 2: /**
 3:  * Created by PhpStorm.
 4:  * User: manus
 5:  * Date: 10/5/16
 6:  * Time: 11:01
 7:  */
 8: 
 9: namespace GLFramework\Mail;
10: 
11: 
12: class PHPMailer extends MailSystem
13: {
14:     var $mail;
15:     public function __construct(array $config)
16:     {
17:         parent::__construct($config);
18: //        $this->mail = new \PHPMailer();
19: //        //Enable SMTP debugging
20: //        // 0 = off (for production use)
21: //        // 1 = client messages
22: //        // 2 = client and server messages
23: //        $this->mail->SMTPDebug = 0;
24: //        //Ask for HTML-friendly debug output
25: //        $this->mail->Debugoutput = 'html';
26: //
27: //        $this->mail->CharSet = 'UTF-8';
28: //        //Set the hostname of the mail server
29: //        $this->mail->Host = $config['mail']['hostname'];
30: //        //Set the SMTP port number - likely to be 25, 465 or 587
31: //        $this->mail->Port = $config['mail']['port'];
32: //        //Whether to use SMTP authentication
33: //        $this->mail->SMTPAuth = true;
34: //        //Username to use for SMTP authentication
35: //        $this->mail->Username = $config['mail']['username'];
36: //        //Password to use for SMTP authentication
37: //        $this->mail->Password = $config['mail']['password'];
38: //        //Set who the message is to be sent from
39: //        $this->mail->isSMTP();
40: //
41: //        $this->mail->setFrom($config['mail']['from']['email'], $config['mail']['from']['title']);
42:     }
43:     
44: 
45:     public function getTransport()
46:     {
47:         $config = $this->config;
48:         $transport = \Swift_SmtpTransport::newInstance($config['mail']['hostname'], $config['mail']['port']);
49:         $transport->setUsername($config['mail']['username']);
50:         $transport->setPassword($config['mail']['password']);
51:         return $transport;
52:     }
53: }
API documentation generated by ApiGen