Looks like port 465 is not open for your application, try to do a
telnet directly from the server where the application
is deployed and see if that works:
$ telnet smtp.gmail.com 465
Trying 74.125.95.109...
Connected to gmail-smtp-msa.l.google.com.
Escape character is '^]'.
gabriel
On Apr 28, 10:06 pm, Javier Garcia <[email protected]> wrote:
> Hi,
>
> after deploying I gettin this error below when i try to send an mail:
>
> 500 | Internal Server Error | Swift_TransportException
> Connection could not be established with host smtp.gmail.com
> [Connection
> timed out #110]
> stack trace
>
> * at **()
> in
> /SF_ROOT_DIR/lib/vendor/symfony/lib/vendor/swiftmailer/classes/
> Swift/Transport/StreamBuffer.php/
> line 235 ...
> <http://www.tirengarfio.com/rs5/web/frontend_dev.php/register#>
> 232. }
> 233. if (!$this->_stream = fsockopen($host,
> $this->_params['port'], $errno, $errstr, $timeout))
> 234. {
> 235. throw new Swift_TransportException(
> 236. 'Connection could not be established with host ' .
> $this->_params['host'] .
> 237. ' [' . $errstr . ' #' . $errno . ']'
> 238. );
> * at *Swift_Transport_StreamBuffer->_establishSocketConnection*()
> in
> /SF_ROOT_DIR/lib/vendor/symfony/lib/vendor/swiftmailer/classes/
> Swift/Transport/StreamBuffer.php/
> line 70 ...
> <http://www.tirengarfio.com/rs5/web/frontend_dev.php/register#>
> 67. break;
> 68. case self::TYPE_SOCKET:
> 69. default:
> 70. $this->_establishSocketConnection();
> 71. break;
> 72. }
> 73. }
> * at *Swift_Transport_StreamBuffer->initialize*(/array/('protocol'
> => 'ssl', 'host' => 'smtp.gmail.com', 'port' => 465, 'timeout'
> =>
> 30, 'blocking' => 1, 'type' => 1))
> in
> /SF_ROOT_DIR/lib/vendor/symfony/lib/vendor/swiftmailer/classes/
> Swift/Transport/AbstractSmtpTransport.php/
> line 101 ...
> <http://www.tirengarfio.com/rs5/web/frontend_dev.php/register#>
> 98.
> 99. try
> 100. {
> 101. $this->_buffer->initialize($this->_getBufferParams());
>
> 102. }
> 103. catch (Swift_TransportException $e)
> 104. {
> * at *Swift_Transport_AbstractSmtpTransport->start*()
> in
> /SF_ROOT_DIR/lib/vendor/symfony/lib/vendor/swiftmailer/classes/
> Swift/Mailer.php/
> line 74 ...
> <http://www.tirengarfio.com/rs5/web/frontend_dev.php/register#>
> 71.
> 72. if (!$this->_transport->isStarted())
> 73. {
> 74. $this->_transport->start();
> 75. }
> 76.
> 77. return $this->_transport->send($message,
> $failedRecipients);
> * at *Swift_Mailer->send*(/object/('Swift_Message'), /array/())
> in /SF_ROOT_DIR/lib/vendor/symfony/lib/mailer/
> sfMailer.class.php/
> line 300 ...
> <http://www.tirengarfio.com/rs5/web/frontend_dev.php/register#>
> 297. return $this->realtimeTransport->send($message,
>
> $failedRecipients);
> 298. }
> 299.
> 300. return parent::send($message,
> $failedRecipients);
> 301. }
> 302.
> 303. /**
> * at *sfMailer->send*(/object/('Swift_Message'))
> in /SF_ROOT_DIR/lib/vendor/symfony/lib/mailer/
> sfMailer.class.php/
> line 263 ...
> <http://www.tirengarfio.com/rs5/web/frontend_dev.php/register#>
> 260. */
> 261. public function composeAndSend($from, $to, $subject,
> $body)
> 262. {
> 263. return $this->send($this->compose($from, $to,
> $subject, $body));
> 264. }
> 265.
> 266. /**
> * at *sfMailer->composeAndSend*('[email protected]',
> '[email protected]', 'Confirm Registration', 'Hello
> fjklsdjf,<br/><br/> <a
> href="http://www.tirengarfio.com/rs5/web/frontend_dev.php/
> register/confirm/...">Click
> here to confirm your registration</a><br/><br/> Your login
> information can be found below:<br/><br/> Username: fjklsdjf<br/
>
> Password: m')
> in
> /SF_ROOT_DIR/plugins/sfDoctrineGuardExtraPlugin/modules/
> sfGuardRegister/lib/BasesfGuardRegisterActions.class.php/
> line 89 ...
> <http://www.tirengarfio.com/rs5/web/frontend_dev.php/register#>
> 86. $user->getEmailAddress(),
> 87. 'Confirm Registration',
> 88. $message
> 89. );
> 90. }
> 91.
> 92. /**
> * at
> *BasesfGuardRegisterActions->sendRegisterConfirmMail*(/object/
> ('sfGuardUser'),
> 'm')
> in
> /SF_ROOT_DIR/plugins/sfDoctrineGuardExtraPlugin/modules/
> sfGuardRegister/lib/BasesfGuard/
>
> This is my configuration in factories.yml.
>
> all:
> mailer:
> param:
> delivery_strategy: realtime
> transport:
> class: Swift_SmtpTransport
> param:
> host: smtp.gmail.com
> port: 465
> encryption: ssl
> username: tirengarfio
> password: ogogle
>
> The port 465 is open the my remote host. No problem in localhost.
>
> Any idea?
>
> --
> Javi
>
> Ubuntu 8.04
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group
> athttp://groups.google.com/group/symfony-users?hl=en
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en