Welcome Guest, Not a member yet? Register   Sign In
Issues with Google SMTP and CodeIgniter
#1

[eluser]Unknown[/eluser]
I have seen a lot of other people had this issue.

I have setup an email form using the Google Mail server to send the email. This worked on my local machine, but once i put it on the server i get this error

Code:
The following SMTP error was encountered: 110 Connection timed out
Unable to send data: AUTH LOGIN
Failed to send AUTH LOGIN command. Error:
Unable to send data: MAIL FROM:

from:

The following SMTP error was encountered:
Unable to send data: RCPT TO:

to:

The following SMTP error was encountered:
Unable to send data: DATA

data:

The following SMTP error was encountered:
Unable to send data: User-Agent: CodeIgniter Date: Thu, 2 Feb 2012 14:24:43 +0000


Here is the setup i have in CI

Code:
$config = array (
    'smtp_host' => 'ssl://smtp.googlemail.com',
    'smtp_user' => 'emial',
    'smtp_pass' => 'password',
    'smtp_port' => '465',
    'protocol' => 'smtp',
    'charset'  => 'utf-8',
    'mailtype' => 'html',
    'wordwrap' => TRUE
);


I have tried using both port 465 and 587, and both ssl://smtp.googlemail.com and tls://smtp.googlemail.com

Is there a way i can use port 995 rather than 110?


Any help getting this working would be great.
#2

[eluser]Unknown[/eluser]
I seem to have it working to a degree. I can send emails if i remove the mailtype => 'html', for some reason it will only send text mailtypes. For me this is fine, but for future is there something that i have missed?




Theme © iAndrew 2016 - Forum software by © MyBB