Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php defined('BASEPATH') OR exit('No direct script access allowed');
- /**
- *
- */
- class Bizmailer_Controller extends CI_Controller
- {
- public function __construct()
- {
- parent::__construct();
- require "vendorphpmailerphpmailerPHPMailerAutoload";
- $this->Bizmailer = new PHPMailer();
- //Set the required config parameters
- $mail->isSMTP(); // Set mailer to use SMTP
- $mail->Host = 'smtp1.example.com;smtp2.example.com'; // Specify main and backup SMTP servers
- $mail->SMTPAuth = true; // Enable SMTP authentication
- $mail->Username = 'user@example.com'; // SMTP username
- $mail->Password = 'secret'; // SMTP password
- $mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
- $mail->Port = 465;
- //return $api;
- }
- }
- $this->load->library('Bizmailer');
- $mail = new Bizmailer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement