Advertisement
Guest User

code email

a guest
Mar 29th, 2016
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. private function getconfig(){
  2. $this->config->load('moffice_config');
  3.  
  4. $surat = new PHPMailer();
  5. //$judul = 'PJB Moffice';
  6. //$surat->SMTPDebug = 3; // Enable verbose debug output
  7. $surat->isSMTP(); // Set mailer to use SMTP
  8. $surat->Host = $this->config->item('mail_host'); //'smtp2014.ptpjb.com'; // Specify main and backup SMTP servers
  9. $surat->SMTPAuth = false; // Enable SMTP authentication
  10. //$surat->Username = $this->config->item('mail_user'); // SMTP username
  11. //$surat->Password = $this->config->item('mail_password');; //'fkhwvvaymzfavykx'; // SMTP password
  12. //$surat->SMTPSecure = $this->config->item('mail_SMTPSecure'); // Enable TLS encryption, `ssl` also accepted
  13. $surat->Port = 25; //587; // TCP port to connect to
  14. $surat->From = $this->config->item('mail_from'); //'noreply@ptpjb.com';
  15. $surat->FromName = $this->config->item('mail_fromname');
  16.  
  17. return $surat;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement