Отправить почту с Gmail » Working Code

private function _sendEmail($aTo, $aMessage, $aSubject) { $this->load->library(' email'); $config = array(); $config['protocol'] = 'smtp'; $config['smtp_host'] ...

Отправить почту с Gmail private function _sendEmail($aTo, $aMessage, $aSubject) { $this->load->library('email'); $config = array(); $config['protocol'] = 'smtp'; $config['smtp_host'] = 'ssl://smtp.googlemail.com'; $config['smtp_user'] = '*******'; $config['smtp_pass'] = '*******'; $config['smtp_port'] = '465'; $config['mailtype'] = 'html'; $config['smtp_auth'] = true; $config['smtp_timeout']='30'; $config['newline']="\r\n"; $this->email->initialize($config); $this->email->from('noreply@test.com', 'Automated'); $this->email->to($aTo); $this->email->subject($aSubject); $this->email->message($aMessage); $this->email->send(); } Posted by Vyacheslav Isaev at 15:20 Вычислить количество точек с целочисленными координатами, находящихся в круге радиуса