Advertisement
Guest User

Untitled

a guest
Jun 30th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. <?php defined('BASEPATH') OR exit('No direct script access allowed');
  2.  
  3. /**
  4. *
  5. */
  6. class Bizmailer_Controller extends CI_Controller
  7. {
  8.  
  9. public function __construct()
  10. {
  11. parent::__construct();
  12.  
  13. require "vendorphpmailerphpmailerPHPMailerAutoload";
  14. $this->Bizmailer = new PHPMailer();
  15. //Set the required config parameters
  16. $mail->isSMTP(); // Set mailer to use SMTP
  17. $mail->Host = 'smtp1.example.com;smtp2.example.com'; // Specify main and backup SMTP servers
  18. $mail->SMTPAuth = true; // Enable SMTP authentication
  19. $mail->Username = 'user@example.com'; // SMTP username
  20. $mail->Password = 'secret'; // SMTP password
  21. $mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
  22. $mail->Port = 465;
  23. //return $api;
  24. }
  25. }
  26.  
  27. $this->load->library('Bizmailer');
  28. $mail = new Bizmailer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement