authenticating troubles
Posted: Mon Feb 25, 2008 2:20 am
I'm using the latest swiftmail.
I had it doing all kinds of cool stuff on hostgator.com server, but then the fun came to a hault.
I can no longer send emails out to place like hotmail and lycos mail.
When I setup outlook they required I check "my server requires authentification" the settings are the same as my incoming settings, and they require you use port 26 instead of 25.
this is all working fine.
<?php
require_once "lib/EasySwift.php";
require_once "lib/Swift/Connection/SMTP.php";
require_once 'lib/Swift/Authenticator/PopB4Smtp.php';
$smtp->attachAuthenticator(new Swift_Authenticator_PopB4Smtp("pop.shasheenmachine.com"));
$smtp->setUsername("me@shasheenmachine.com");
$smtp->setPassword("me_password");
$swift =& new Swift(new Swift_Connection_SMTP("mail.shasheenmachine.com"));
it's parcing the scripts for sure. here is my error:
Fatal error: Call to a member function on a non-object in /home/me/public_html/checkout.php on line 8
line 8 being - $smtp->attachAuthenticator(new Swift_Authenticator_PopB4Smtp("pop.shasheenmachine.com")); I've changed this to mail.shasheenmachine.com and I've tried changing the username to my account username instead of email address. I don't have any more ideas.
I need this to work because my form sends a sales reciept to clients outside the hostgator realm.
I had it doing all kinds of cool stuff on hostgator.com server, but then the fun came to a hault.
I can no longer send emails out to place like hotmail and lycos mail.
When I setup outlook they required I check "my server requires authentification" the settings are the same as my incoming settings, and they require you use port 26 instead of 25.
this is all working fine.
<?php
require_once "lib/EasySwift.php";
require_once "lib/Swift/Connection/SMTP.php";
require_once 'lib/Swift/Authenticator/PopB4Smtp.php';
$smtp->attachAuthenticator(new Swift_Authenticator_PopB4Smtp("pop.shasheenmachine.com"));
$smtp->setUsername("me@shasheenmachine.com");
$smtp->setPassword("me_password");
$swift =& new Swift(new Swift_Connection_SMTP("mail.shasheenmachine.com"));
it's parcing the scripts for sure. here is my error:
Fatal error: Call to a member function on a non-object in /home/me/public_html/checkout.php on line 8
line 8 being - $smtp->attachAuthenticator(new Swift_Authenticator_PopB4Smtp("pop.shasheenmachine.com")); I've changed this to mail.shasheenmachine.com and I've tried changing the username to my account username instead of email address. I don't have any more ideas.
I need this to work because my form sends a sales reciept to clients outside the hostgator realm.