Cannot Connect
Posted: Fri Jan 26, 2007 8:04 pm
Really looking forward to using Swiftmailer, but I cannot get connected to my SMTP server. I have read most of the threads about this problem. When I couldn't create a swift object I tried the following function:
This results in the following:
I know my server uses pop login authentication. I am able to send mail regularly with all my email clients
Any suggestions?
Keith
Code: Select all
function testsock() {
$sock = fsockopen("mail.myserversname.com", 25, $errno, $errstr, 10);
var_dump($sock);
echo "<br />Error number: $errno";
echo "<br />Error message: $errstr";
}Code: Select all
A PHP Error was encountered
Severity: Warning
Message: fsockopen() [function.fsockopen]: unable to connect to mail.myserversname.com:25
Filename: controllers/contacts.php
Line Number: 23
bool(false)
Error number: 111
Error message: Connection refusedAny suggestions?
Keith