I'm a really big fan of Swift Mailer, and have been using it on a personal site for a couple months with no problems at all. Today, however, I took a site I built on my server, and moved it to a godaddy.com server and everything went kablooie. I'm not trying to do anything more complicated than just send a "hey, your buddy wants you to look at this" email. I'm not really sure what is wrong, or how to fix it. Does anyone have any ideas or advice on how to get a godaddy server playing nice with swift?
here's the email function I use. I'm not sure if "smtpout.secureserver.net" is the correct smtp client, but I've browsed through as many of godaddy's relevant help files as I could find with no pointers besides "use this!".
Code: Select all
function email($to, $from, $subject, $body)
{
require_once "swift/Swift.php";
require_once "swift/Swift/Connection/SMTP.php";
$swift =& new Swift(new Swift_Connection_SMTP("smtpout.secureserver.net"));
$message =& new Swift_Message($subject, $body);
if ($swift->send($message, $to, $from)) return true;
else return false;
}I guess what I'm really asking is, "how do I troubleshoot this?"
Oh, also: It's a linux server, and php 5 is enabled.
Edit: Ahha, found an error... I have no idea what it means though:
Swift Mailer wrote:Fatal error: Uncaught exception 'Swift_BadResponseException' with message 'Expected response code(s) [250] but got response []' in /home/.../swift/Swift.php:250 Stack trace: #0 /home/.../swift