
04-28-2010, 03:10 PM
|
|
Newbie
|
|
Join Date: May 2009
Posts: 7
|
|
In remote host: Connection could not be established with host smtp.gmail.com [Connect
Hi,
after deploying I getting this error below when i try to send an mail:
Code:
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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('tirengarfio@gmail.com', 'tirengarfio@hotmail.com', 'Confirm Registration', 'Hello fjklsdjf,<br/><br/> <a href="http://www.tirengarfio.com/rs5/web/frontend_dev.php/register/confirm/m/19">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 ...
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:
Code:
all:
mailer:
param:
delivery_strategy: realtime
transport:
class: Swift_SmtpTransport
param:
host: smtp.gmail.com
port: 465
encryption: ssl
username: tirengarfio
password: XXXX
The port 465 is open the my remote host. No problem in localhost.
Any idea?
--
Javi
Ubuntu 8.04
|

04-28-2010, 08:25 PM
|
|
Web Host Extraordinaire!!!
|
|
Join Date: Dec 2007
Location: Indianapolis, Indiana USA
Posts: 14,315
|
|
You're going to have to be more specific in what you're using and what you're trying to do... I don't think that this is even the right section for this post either based upon what you have posted.
__________________
█ Michael Denney - MDDHosting, LLC - Professional Hosting Solutions
█ LiteSpeed Powered - Shared, Reseller, Semi-Dedicated, and VPS
█ For high-end shared accounts ideal for business, check out our Semi-Dedicated offerings!
█ http://www.mddhosting.com/ - Providing Quality Services since 2007
|

04-29-2010, 04:23 AM
|
|
Web Hosting Master
|
|
Join Date: Dec 2007
Posts: 3,612
|
|
Javi Mike is right here. However I think that better if you have a look at that with your provider.
|

04-29-2010, 07:30 AM
|
|
Junior Guru
|
|
Join Date: Jan 2010
Location: India
Posts: 213
|
|
Hi,
The error message is connection timed out.. right? Try once again after turning off your firewall.
|

04-29-2010, 10:50 AM
|
|
Web Hosting Master
|
|
Join Date: Mar 2005
Location: Florida
Posts: 2,516
|
|
iptables --flush
If it continues happening, then it's your script or [unlikely] gMail.
Edit: Don't run it on a VPS. It may render it offline.
__________________
█ Matthew Rosenblatt, and I'm the lead developer for CloudPanel.
█ Check out the DreamVelop Blog for more information!
█ I'm back in the country. I work as a lighting technician for Celebrity Cruises.
█ Want to read about my job and my travels? Click here!
|

04-29-2010, 01:35 PM
|
|
Newbie
|
|
Join Date: Apr 2010
Posts: 18
|
|
are you tring to send out some sort of mailshot , but using google's smtp servers ?
|

01-20-2011, 04:14 AM
|
|
New Member
|
|
Join Date: Jan 2011
Posts: 1
|
|
This type of problem is obvious if you are using the free hosting provider, or you are having some truouble with your ip address.
You just need to do something, and after that you might get out to this easily. One solution i'm suggesting here and that is remote hosting that can give you the solution from all your previous problems and always there support you 24/7 anywhere anytime.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| Postbit Selector |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|