gmail-smtp funktioniert nicht in meinem hosting mit codeigniter framework

ich möchte die gmail-smtp zum senden von Benutzerinformationen an die registrierte E-Mail.

Den code, den ich verwende, ist in Ordnung, die in meinem localhost, aber wenn ich wechselte in das shared hosting, kommen aus den unten genannten Fehler.

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: 1652

A PHP Error was encountered
Severity: Warning

Message: fwrite(): supplied argument is not a valid stream resource

Filename: libraries/Email.php

Line Number: 1795

.... (more error msg here)

An Error Was Encountered
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

.... (more error msg here)

Hier ist meine E-Mail-config

$pass = $this->generatePassword('6');

$config = Array(
  'protocol' => 'smtp',
  'smtp_host' => 'ssl://smtp.googlemail.com',
  'smtp_port' => 465,
  'smtp_timeout'=>'30',
  'smtp_user' => '[email protected]',
  'smtp_pass' => 'mypassword',
  'mailtype'  => 'html',
  'charset'   => 'iso-8859-1'
);
$this->load->library('email', $config);
$this->email->set_newline("\r\n");

$this->email->from('[email protected]','Title');
$this->email->to($this->input->post('email'));

$this->email->subject('Subject here');
$this->email->message('Your login username is '.$this->input->post('username').'<br/>'.'Password is '.$pass);

if (!$this->email->send()){
  show_error($this->email->print_debugger());
}else{ echo 'YEAH!!!';}

probiere ich mein share hosting openssl, ob die aktiviert ist oder nicht. und ich fand diese

openssl
OpenSSL support enabled

OpenSSL-Version OpenSSL-0.9.8 e-fips-rhel5 01 Jul 2008

Wenn openssl aktiviert ist. noch was wird der Fehler in meinem code?

Beginne ich frustriert zu sein, um meine localhost entwickeln und Wann Sie hochgeladen auf share-hosting, kam es aus Witz viele Fehler.

Jede mögliche Hilfe würde geschätzt!! thx in advanced

InformationsquelleAutor bravo net | 2011-06-10
Schreibe einen Kommentar