Authentication failing??
Posted: Thu Jan 17, 2008 10:25 pm
I have the following simple code:
Using the exact same credentials I was able to login to my account using Outlook on my Windows machine but when I try the above code in PHP on my Linux box...I get an 'connection exception'.
Any ideas as to what might be causing this? I've read your docs and I'm thinking maybe it's the password validation using MD5 when my SMTP mail server may not support that. I have nothing special configured in Outlook which would make me think this...
Both my desktop and linux server sit side by side behind the same routuer...yet the credentials work under Outlook. I'm confused, any advice?
Edit: I have tried the following code using my GMail account:
This seems to work as I don't get any exceptions about connection issues. I am bewildered, as I've tried playing with the parameters in the Swift_Connection_SMTP constructor but sitll get nothing. The connection works fine when used from Outlook on my desktop. They both sit behind the same router...so I don't think it's a port issue...
Although I got my code working...I would still like any opinions anyone has on why this might happen???
Cheers
Code: Select all
$smtp = new Swift_Connection_SMTP('isp.blah.net');
$smtp->setUsername('test');
$smtp->setPassword('test');
$swift = new Swift($smtp);Any ideas as to what might be causing this? I've read your docs and I'm thinking maybe it's the password validation using MD5 when my SMTP mail server may not support that. I have nothing special configured in Outlook which would make me think this...
Both my desktop and linux server sit side by side behind the same routuer...yet the credentials work under Outlook. I'm confused, any advice?
Edit: I have tried the following code using my GMail account:
Code: Select all
$smtp = new Swift_Connection_SMTP("smtp.gmail.com", Swift_Connection_SMTP::PORT_SECURE, Swift_Connection_SMTP::ENC_TLS);
$smtp->setUsername("myname@gmail.com");
$smtp->setpassword("mypass");Although I got my code working...I would still like any opinions anyone has on why this might happen???
Cheers