Here is the code I have -
Code: Select all
require_once "swiftmailer-library/Swift.php";
require_once "swiftmailer-library/Swift/Connection/SMTP.php";
$smtp =& new Swift_Connection_SMTP(**SMTPSERVER**, **PORT**);
$smtp->setUsername(**USERNAME**);
$smtp->setpassword(**PASSWORD**);
$swift =& new Swift($smtp);
Code: Select all
Fatal error:
Uncaught Error of type [Swift_ConnectionException] with message [Authentication failed using username '**USERNAME**' and password '*********']
@0 Swift::Swift() in admin-send-email.php on line 100
@1 Swift::connect() in /swiftmailer-library/Swift.php on line 109
@2 Swift::handshake() in /swiftmailer-library/Swift.php on line 230
Any help would be greatly appreciated. Thank you.