Codeigniter send email on mamp -
i using codeigniter , email class try sending email on mamp (free version)
my code below
$config = array(
'protocol' => 'smtp', 'smtp_host' => 'ssl://smtp.googlemail.com', 'smtp_port' => 465, 'smtp_user' => 'test@gmail.com.sg', 'smtp_pass' => '*********', 'mailtype' => 'html', 'starttls' => true ); $this->load->library('email', $config); $this->email->set_newline("\r\n"); $this->email->from('test@gmail.com.sg', 'jeffrey way'); $this->email->to('test_to@gmail.com.sg'); $this->email->subject('this email test'); $this->email->message('it working. great!'); $this->email->send(); echo $this->email->print_debugger();
however error
220 mx.google.com esmtp ri1sm17015935pbc.16 - gsmtp hello: 250-mx.google.com @ service, [203.116.128.34] 250-size 35882577 250-8bitmime 250-auth login plain xoauth xoauth2 250 enhancedstatuscodes
failed authenticate password. error: 535-5.7.1 username , password not accepted. learn more @ 535 5.7.1 http://support.google.com/mail/bin/answer.py?answer=14257 ri1sm17015935pbc.16 - gsmtp from: 530-5.5.1 authentication required. learn more @ 530 5.5.1 http://support.google.com/mail/bin/answer.py?answer=14257 ri1sm17015935pbc.16 - gsmtp
the following smtp error encountered: 530-5.5.1 authentication required. learn more @ 530 5.5.1 http://support.google.com/mail/bin/answer.py?answer=14257 ri1sm17015935pbc.16 - gsmtp to: 530-5.5.1 authentication required. learn more @ 530 5.5.1 http://support.google.com/mail/bin/answer.py?answer=14257 ri1sm17015935pbc.16 - gsmtp
thanks in advance help.
authentication required. you using not own gmail account (email , password)
Comments
Post a Comment