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