PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
//Load in the files we'll need
require_once "lib/Swift.php";
require_once "lib/Swift/Connection/SMTP.php";
//Connect to SMTP (PHP5)
$swift = new Swift(new Swift_Connection_SMTP("mail.dixiechopper2008.com", 25));
$smtp->setUsername("admin@dixiechopper2008.com");
$smtp->setpassword("overtime");
//$smtp =& new Swift_Connection_SMTP("some-host.tld", 25);
$swift =& new Swift($smtp);
$swift2 =& new Swift($smtp);
//Load in the files we'll need
require_once "lib/Swift.php";
require_once "lib/Swift/Connection/SMTP.php";
//Connect to SMTP (PHP5)
$smtp = new Swift(new Swift_Connection_SMTP("mail.dixiechopper2008.com", 25));
$smtp->setUsername("admin@dixiechopper2008.com");
$smtp->setpassword("overtime");
$swift = new Swift($smtp);
$swift2 = new Swift($smtp);
//Load in the files we'll need
require_once "lib/Swift.php";
require_once "lib/Swift/Connection/SMTP.php";
//Connect to Server (PHP4)
$smtp =& new Swift_Connection_SMTP("smtp.dixiechopper2008.com", SWIFT_SMTP_PORT_SECURE, SWIFT_SMTP_ENC_TLS);
$smtp->setUsername("xxxxxxx");
$smtp->setpassword("xxxxxxx");
$swift =& new Swift($smtp);
$swift2 =& new Swift($smtp);
the new server is running php5 and the smtp server is changed to mail.dixiechopper2008.com
I tried different code combinations that was in the documentation could you tell me what the proper code should be?
//Load in the files we'll need
require_once "lib/Swift.php";
require_once "lib/Swift/Connection/SMTP.php";
//Connect to SMTP (PHP5)
$smtp = new Swift(new Swift_Connection_SMTP("mail.dixiechopper2008.com", 25));
$smtp->setUsername("admin@dixiechopper2008.com");
$smtp->setpassword("overtime");
$swift = new Swift($smtp);
$swift2 = new Swift($smtp);
//Load in the files we'll need
require_once "lib/Swift.php";
require_once "lib/Swift/Connection/SMTP.php";
//Connect to SMTP (PHP5)
$smtp = new Swift_Connection_SMTP("mail.dixiechopper2008.com", 25);
$smtp->setUsername("admin@dixiechopper2008.com");
$smtp->setpassword("overtime");
$swift = new Swift($smtp);
$swift2 = new Swift($smtp);
and i got this error as i stated
Fatal error: Uncaught exception 'Swift_ConnectionException' with message 'Authentication failed using username 'admin@dixiechopper2008.com' and password '********'' in /usr/local/www/vhosts/dixiechopper2008.com/httpdocs/lib/Swift/Connection/SMTP.php:414 Stack trace: #0 /usr/local/www/vhosts/dixiechopper2008.com/httpdocs/lib/Swift/Connection/SMTP.php(331): Swift_Connection_SMTP->runAuthenticators('admin@dixiechop...', 'overtime', Object(Swift)) #1 /usr/local/www/vhosts/dixiechopper2008.com/httpdocs/lib/Swift.php(264): Swift_Connection_SMTP->postConnect(Object(Swift)) #2 /usr/local/www/vhosts/dixiechopper2008.com/httpdocs/lib/Swift.php(220): Swift->handshake(Object(Swift_Events_ResponseEvent)) #3 /usr/local/www/vhosts/dixiechopper2008.com/httpdocs/lib/Swift.php(101): Swift->connect() #4 /usr/local/www/vhosts/dixiechopper2008.com/httpdocs/contact.php(208): Swift->__construct(Object(Swift_Connection_SMTP)) #5 {main} thrown in /usr/local/www/vhosts/dixiechopper2008.com/httpdocs/lib/Swift/Connection/SMTP.php on line 414
are you still using the swift php4 code on the php5 server?
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.