SMTP -> Impossible?

  • Posted on May 5, 2014
  • ramonAsked by ramon

Hi! I’m running an app on ubuntu 12 that is based on CakePHP. I was just migrating the app and everything is working, but i have errors every time I try to send e-mails with my gmail account. This app is totally tested and work 100% but here in DigitalOcean the SMTP connection seems to be impossible…

any idea?

My basic config (and i know 100% it’s OK because the app is already working on at least 4 servers) is:

public $mail = array( ‘transport’ => ‘Smtp’, ‘host’ => ‘ssl://’, ‘from’ => array(‘’ => ‘Pretty Name here’), ‘port’ => 465, ‘timeout’ => 30, ‘username’ => ‘’, ‘password’ => ‘mypass’, ‘emailFormat’ => ‘html’ );

using CakePHP and CakeEmail function. As I said, everything works perfectly on other servers.

And no, it’s not a gmail ban, because I tried to install the app on another server after installing it here and everything is still working…

Any idea about why is SMTP blocked??

My cake say:

      Connection timed out

and the trace:

      CORE/Cake/Network/Email/SmtpTransport.php line 99
                protected function _connect(){

I’ve tried lot of thing, but nothing seems to work… any ideas? it’s a little big urgency ^ ^

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi Ramon, <br> <br>To curb a recent increase in abuse and SPAM, we have an initial SMTP block on new accounts created in certain contexts. If you file a support ticket ( the team should be able to lift that for you after some manual account verification. <br> <br>Sorry for the inconvenience!

SMTP is blocked by DigitalOcean for new accounts. You must open a ticket and it will be solved instantly. It need account verification.

Thanks! this worked for me! just open a ticket!