PHP Classes

File: vendor/jackbooted/mail/SMTPSendMail.php

Recommend this page to a friend!
  Packages of Brett Dutton   JackBooted PHP Framework   vendor/jackbooted/mail/SMTPSendMail.php   Download  
File: vendor/jackbooted/mail/SMTPSendMail.php
Role: Class source
Content type: text/plain
Description: Class source
Class: JackBooted PHP Framework
Web application framework using simplified MVC
Author: By
Last change:
Date: 10 years ago
Size: 619 bytes
 

 

Contents

Class file image Download
<?php
namespace Jackbooted\Mail;

class SMTPSendMail extends \PHPMailer {
    public function __construct ( $host='localhost', $exceptions = false ) {
        parent::__construct ( $exceptions );

        $this->isSMTP();
        $this->SMTPDebug = 0;

        //Ask for HTML-friendly debug output
        $this->Debugoutput = 'html';

        //Set the hostname of the mail server
        $this->Host = $host;

        //Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission
        $this->Port = 25;

        //Whether to use SMTP authentication
        $this->SMTPAuth = false;
    }
}