Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function getconfig(){
- $this->config->load('moffice_config');
- $surat = new PHPMailer();
- //$judul = 'PJB Moffice';
- //$surat->SMTPDebug = 3; // Enable verbose debug output
- $surat->isSMTP(); // Set mailer to use SMTP
- $surat->Host = $this->config->item('mail_host'); //'smtp2014.ptpjb.com'; // Specify main and backup SMTP servers
- $surat->SMTPAuth = false; // Enable SMTP authentication
- //$surat->Username = $this->config->item('mail_user'); // SMTP username
- //$surat->Password = $this->config->item('mail_password');; //'fkhwvvaymzfavykx'; // SMTP password
- //$surat->SMTPSecure = $this->config->item('mail_SMTPSecure'); // Enable TLS encryption, `ssl` also accepted
- $surat->Port = 25; //587; // TCP port to connect to
- $surat->From = $this->config->item('mail_from'); //'noreply@ptpjb.com';
- $surat->FromName = $this->config->item('mail_fromname');
- return $surat;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement