×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Nilesh Yadav
Added: Aug 2, 2017 1:46 PM
Views: 6
Tags: no tags
  1.         $config['protocol']    = 'smtp';
  2.         $config['smtp_host']    = 'ssl://smtp.yandex.com.tr';
  3.         $config['smtp_port']    = '465';
  4.         $config['smtp_timeout'] = '7';
  5.         $config['smtp_user']    = 'romans@can.biz.tr';
  6.         $config['smtp_pass']    = 'Vdae22666_';
  7.         $config['charset']    = 'utf-8';
  8.         $config['newline']    = "\r\n";
  9.         $config['mailtype'] = 'text'; // or html
  10.         $config['validation'] = TRUE; // bool whether to validate email or not      
  11.  
  12.         $this->load->library("email",$config);
  13.  
  14.         $this->email->from('romans@can.biz.tr', 'myname');
  15.         $this->email->to('ben@cancalisir.com');
  16.  
  17.         $this->email->subject('Email Test');
  18.         $this->email->message('Testing the email class.');  
  19.  
  20.         $this->email->send();
  21.  
  22.         echo $this->email->print_debugger();