Welcome Guest, Not a member yet? Register   Sign In
Integrate Google Apps Mail with CodeIgniter - Error
#3

(05-27-2016, 03:50 AM)Aneri Wrote: Hello,

I am developing a web app. The config details of the same are as follows:

Domain - BigRock
SMTP : Google Apps configured in BigRock Domain
App server - EC2 , Redhat Linux
Website - Developed in PHP using MVC architecture based on CodeIgniter. CodeIgniter has been already installed on the app server and is working for fine for everything else. 


I am running a simple file to test email :

public function sendmail()
{
    $config = Array(
    'protocol' => 'smtp',
    'smtp_host' => 'ssl://smtp.gmail.com',
    'smtp_port' => 465,
       'smtp_user' => '[email protected]',
    'smtp_pass' => '<<our correct pwd>>',
    'mailtype'  => 'html',
    'charset'   => 'iso-8859-1'
    );
    
    $this->load->library('email', $config);
    $this->email->set_newline("\r\n");
    $this->email->from('[email protected]', 'sender name');
    $this->email->to('[email protected]');
    $this->email->cc('[email protected]');
    $this->email->subject('Email Testing');
    $this->email->message('Email Working');
    if ($this->email->send())
        echo "Mail Sent!";
    else
        echo "There is error in sending mail!";
        echo $this->email->print_debugger();
}

But I am getting and error as provided in attachment. Can you tell me where we are going wrong?

Thanks
Here the instruction link i error files https://support.google.com/mail/answer/78754. Im also got this problem before, but with sailsjs. The problem not with Codeigniter, just follow the instruction in the link.
Keep calm.
Reply


Messages In This Thread
RE: Integrate Google Apps Mail with CodeIgniter - Error - by arma7x - 05-27-2016, 11:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB