Welcome Guest, Not a member yet? Register   Sign In
POP3/SMTP library, converted from fMailbox (Flourish framework)
#21

[eluser]Siregar[/eluser]
I get this error

Quote:A PHP Error was encountered

Severity: Warning

Message: fsockopen() [function.fsockopen]: unable to connect to gmail.com:465 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. )

Filename: libraries/Mailbox.php

Line Number: 871

Code:
A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at D:\Siregar\Study\Sem IV\IBAD\KP\CodeIgniter_2.0.2\system\core\Exceptions.php:170)

Filename: core/Common.php

Line Number: 413

and this
Code:
An Error Was Encountered

Unable to send data since the connection has already been closed

my code is like this :
<?php
class Mailboxqu extends CI_Controller{


function index()
{
$config['type'] = 'imap';
$config['host'] = 'gmail.com';
$config['username'] = '[email protected]';
$config['password'] = 'mypassword';
$config['port'] = 465;
$config['secure'] = FALSE;
$config['timeout'] = 5;

$this->load->library('mailbox', $config);
//$uid adalah id message yang terdapat di mailbox kita. untuk melihat id mail bisa menggunakan //$this->fMAILBOX->listMessages();
$messages = $this->mailbox->listMessages(10);

}
}
?>

whats wrong with mine, with it didn't work well.,

please help..,
#22

[eluser]steelaz[/eluser]
This is a problem with your server configuration, but it can be caused by a few different issues. Search for "fsockopen() unable to connect" and you'll find plenty of advice.




Theme © iAndrew 2016 - Forum software by © MyBB