Hi guys, I'm using the zend framework and have a script which sends emails. However my script send emails perfectly on my localhost but I keep getting a fatal error on my online server:
Fatal error: Uncaught exception 'Zend_Mail_Protocol_Exception' with message 'Connection refused' in ....
The stack trace pin points just my emailing code which is below:
$tr = new Zend_Mail_Transport_Smtp($smtp, $config);
$mail = new Zend_Mail();
$mail->setDefaultTransport($tr);
$mail->setFrom($from, $from_name);
$mail->addTo($one_email);
$mail->setSubject( $subject );
$mail->setBodyText($content);
$mail->send($tr);
Whats wrong here why is the connection being refused :(