SMTP Authentication problem
Posted: Tue Sep 25, 2007 1:57 pm
feyd | Please use
Am I just missing this part:
If that's not the case, then what can it be? I am positive that username and pw are correct, as well as mail server address and port. Please help.
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I can't seem to connect using SMTP Authentication. The error I keep getting is that it cannot connect to the server and connection is timing out. This is what I have for my code:Code: Select all
//Load in the files we'll need
require_once "lib/swift/Swift.php";
require_once "lib/swift/Swift/Connection/SMTP.php";
require_once "lib/swift/Swift/Authenticator/LOGIN.php";
//Start Swift
$conn =& new Swift_Connection_SMTP("mail.myserver.tld", 25);
$conn->setUsername("myusername");
$conn->setPassword("mypassword");
$swift =& new Swift($conn);Code: Select all
$conn->attachAuthenticator(new Swift_Authenticator_LOGIN());feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]