lib/Swift/Authenticator/$PopB4Smtp$.php

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
amendez
Forum Newbie
Posts: 1
Joined: Thu May 10, 2007 1:53 am

lib/Swift/Authenticator/$PopB4Smtp$.php

Post 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.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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
Post Reply