Page 1 of 1

lib/Swift/Authenticator/$PopB4Smtp$.php

Posted: Thu May 10, 2007 2:19 am
by amendez
Hello,

I need to use pop before SMTP, but when I include the next lines in my php code:

Code: Select all

<?php
 
require_once "lib/Swift.php";
require_once "lib/Swift/Connection/SMTP.php";
 
//Apologies for the filename, it's to stop Swift auto-loading it
require_once "lib/Swift/Authenticator/$PopB4Smtp$.php";
The result executing my php is:

Code: Select all

Fatal error: require_once() [function.require]: Failed opening required 'lib/Swift/Authenticator/$.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in xxxxxx/prueba_correo.php on line 27
So, I made a copy of the $PopB4Smtp$.php --> PopB4Smtp.php and after executing the result is:

Code: Select all

Fatal error:
Warning: fsockopen() [function.fsockopen]: unable to connect to mail.xxxxxx.net:110 (Connection timed out) in /home/xxxx/xxxxx/lib/Swift/Authenticator/PopB4Smtp/Pop3Connection.php on line 129

Fatal error:
Uncaught Error of type [Swift_Connection_Exception] with message [The POP3 connection failed to start. The error string returned from fsockopen() is [Connection timed out] #110]
Thanks in advance.

Posted: Sun May 13, 2007 6:30 am
by Chris Corbyn
Apologies for that mistake in the wiki. I'll ammed that. It's just the double quotes trying to parse the $xxx.

Code: Select all

require_once "lib/Swift/Authenticator/\$PopB4Smtp\$.php";

//or

require_once 'lib/Swift/Authenticator/$PopB4Smtp$.php';
The error you're getting is because your server is not allowing you to connect to the remote server on port 110. Are you sure that other server is running POP3? Can you telnet to it?

Code: Select all

telnet mail.xxxxxx 110
QUIT