Sending email through G suite in Codeigniter

Sending email through G suite in Codeigniter 1. Load email library $this->load->library('email'); 2. SMTP & mail configuration $config = array( 'protocol' => 'mail', 'smtp_host' => 'ssl://smtp-relay.gmail.com', 'smtp_port' => 465, 'smtp_user' => ' YourGsuiteEmail ', 'smtp_pass' => ' YourGsuitePassword ', 'mailtype' => 'html', 'charset' =>'utf-8' ); $this->load->library('email', $config); $this->email->initialize($config); $this->email->from($email); ...