Contao\Email::__construct PHP Method

__construct() public method

Instantiate the object and load the mailer framework
public __construct ( )
    public function __construct()
    {
        $this->strCharset = \Config::get('characterSet');
        // Instantiate Swift_Message
        $this->objMessage = \Swift_Message::newInstance();
        $this->objMessage->getHeaders()->addTextHeader('X-Mailer', 'Contao Open Source CMS');
    }