SMTP error, i dont know where is the problem - godaddy

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
daniel302
Forum Newbie
Posts: 3
Joined: Sun Jun 21, 2009 3:20 am

SMTP error, i dont know where is the problem - godaddy

Post by daniel302 »

<?php
require_once 'swift_required.php';

$transport = Swift_SmtpTransport::newInstance('smtpout.secureserver.net', 80)
->setUsername('user@mydomain.com')
->setPassword('pass')
;
$mailer = Swift_Mailer::newInstance($transport);

//Create a message
$message = Swift_Message::newInstance('Wonderful Subject')
->setFrom(array(''user@mydomain.com' => 'John Doe'))
->setTo(array('danniel302@hotmail.com' => 'A name'))
->setBody('Here is the message itself')
;

//Send the message

$result = $mailer->send($message);

?>


i got this error: :crazy:

Fatal error: Uncaught exception 'Swift_TransportException' with message 'Expected response code 220 but got code "", with message ""' in /home/content/u/n/d/underdas1/html/live-mail/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:416 Stack trace: #0 /home/content/u/n/d/underdas1/html/live-mail/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(309): Swift_Transport_AbstractSmtpTransport->_assertResponseCode('', Array) #1 /home/content/u/n/d/underdas1/html/live-mail/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(117): Swift_Transport_AbstractSmtpTransport->_readGreeting() #2 /home/content/u/n/d/underdas1/html/live-mail/swiftmailer/lib/classes/Swift/Mailer.php(84): Swift_Transport_AbstractSmtpTransport->start() #3 /home/content/u/n/d/underdas1/html/live-mail/swiftmailer/lib/smtps.php(50): Swift_Mailer->send(Object(Swift_Message)) #4 {main} thrown in /home/content/u/n/d/underdas1/html/live-mail/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php on line 416


is simple but i dont know where is the problem.

thanks :banghead:
daniel302
Forum Newbie
Posts: 3
Joined: Sun Jun 21, 2009 3:20 am

Re: SMTP error, i dont know where is the problem - godaddy

Post by daniel302 »

:banghead:
daniel302
Forum Newbie
Posts: 3
Joined: Sun Jun 21, 2009 3:20 am

Re: SMTP error, i dont know where is the problem - godaddy

Post by daniel302 »

SOLVED


I TRIED phpmailer on godaddy and it fails (fgets warning), but on localhost can stabilish the SMTP conection to use each relays


maybe swift too.


:drunk:
Post Reply