hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting : In remote host: Connection could not be established with host smtp.gmail.com [Connect
Reply

Web Hosting Discussions on all aspects of web hosting including past experiences (both negative and positive), choosing a host, questions and answers, and other related subjects. If your service is unavailable, please click here.
Forum Jump

In remote host: Connection could not be established with host smtp.gmail.com [Connect

Reply Post New Thread In Web Hosting Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 04-28-2010, 03:10 PM
tirengarfio tirengarfio is offline
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

Reply With Quote


Sponsored Links
  #2  
Old 04-28-2010, 08:25 PM
MikeDVB MikeDVB is offline
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

Reply With Quote
  #3  
Old 04-29-2010, 04:23 AM
SiberForum SiberForum is offline
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.

Reply With Quote
Sponsored Links
  #4  
Old 04-29-2010, 07:30 AM
bvsonline bvsonline is offline
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.

Reply With Quote
  #5  
Old 04-29-2010, 10:50 AM
Matt R Matt R is offline
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!

Reply With Quote
  #6  
Old 04-29-2010, 01:35 PM
discoverhosting discoverhosting is offline
Newbie
 
Join Date: Apr 2010
Posts: 18
are you tring to send out some sort of mailshot , but using google's smtp servers ?

__________________
█ DiscoverHosting|| www.discoverhosting.com | UK and USA Reseller Hosting| Fully Managed cPanel Hosting
█ VPSCloud || www.vpscloud.co.uk || Fully Managed SolusVM VPS

Reply With Quote
  #7  
Old 01-20-2011, 04:14 AM
Mark knight Mark knight is offline
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.

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't connect to Gmail SMTP gamelan Programming Discussion 0 08-08-2008 02:47 AM
Host that allows remote MSSQL connection? taftech Web Hosting 5 03-10-2007 02:08 PM
connection to remote host closed deadlydog Hosting Security and Technology 3 04-27-2005 08:56 PM
connection to remote host closed jireh Hosting Security and Technology 9 05-06-2004 06:09 PM
rndc: connection to remote host closed Bourd Hosting Security and Technology 3 11-21-2003 07:32 PM

Related posts from TheWhir.com
Title Type Date Posted
Google Offers 15GB of Free Storage Across Cloud Services Web Hosting News 2013-05-13 15:00:03
Equinix Expands AWS Direct Connect Availability to Seattle Data Centers Web Hosting News 2013-05-10 11:32:28
Web Host ViaWest Gets Efficient with Opengear Solutions Web Hosting News 2012-02-28 17:04:18
AWS Direct Connect Expands to CoreSite, Equinix and Telecity Data Centers Web Hosting News 2012-01-11 10:27:21
Amazon Offers Direct Connection to Cloud Services at Equinix Data Centers Web Hosting News 2011-08-04 15:07:57


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?