Welcome Guest, Not a member yet? Register   Sign In
Mail sending error, please help me out
#1

[eluser]sridhar2do[/eluser]
Code in Controller

Code:
function sendmsg(){
  $config = array(
        'protocol' => 'smtp',
        'smtp_host' => 'ssl://smtp.googlemail.com',
        'smtp_port' => 465,
        'smtp_user' => '[email protected]',
        'smtp_pass' => 'abcdefghijk',
        'mailtype'  => 'html',
        'charset'   => 'iso-8859-1'
    );

  $this->load->library('email', $config);

  $this->email->from('[email protected]', 'My Company Name');
  $this->email->to('[email protected]');
  $this->email->subject('Your client Sridhar, Invites you to join our website');
  $this->email->message('From now on wants to transact business with you.');

  $this->email->send();

  echo $this->email->print_debugger();
}

error message:

Code:
A PHP Error was encountered

Severity: Warning

Message: fsockopen() [function.fsockopen]: unable to connect to ssl://smtp.googlemail.com:465 (Connection timed out)

Filename: libraries/Email.php

Line Number: 1689



and from my mail debugger

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


Messages In This Thread
Mail sending error, please help me out - by El Forum - 07-26-2013, 01:44 AM
Mail sending error, please help me out - by El Forum - 07-27-2013, 08:05 PM
Mail sending error, please help me out - by El Forum - 07-31-2013, 03:27 AM
Mail sending error, please help me out - by El Forum - 07-31-2013, 06:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB