Note that there are some explanatory texts on larger screens.

plurals
  1. POActionMailer not sending emails in Development on Windows 7?
    text
    copied!<p>I cannot seem to send emails out in the Development environment when I run my Rails project from my Windows 7 machine. I keep getting a permission denied error. When I run the same code on my Mac the emails are sent out. This led me to believe it could be Windows firewall settings but despite turning the Firewall off and disabling my anti-virus I still get the same error below:</p> <blockquote> <p>Permission denied - connect(2)</p> <p>C:/Ruby200-x64/lib/ruby/2.0.0/net/smtp.rb:540:in `initialize'</p> <p>C:/Ruby200-x64/lib/ruby/2.0.0/net/smtp.rb:540:in `open'</p> <p>C:/Ruby200-x64/lib/ruby/2.0.0/net/smtp.rb:540:in `tcp_socket'</p> <p>C:/Ruby200-x64/lib/ruby/2.0.0/net/smtp.rb:550:in `block in do_start'</p> <p>C:/Ruby200-x64/lib/ruby/2.0.0/timeout.rb:65:in `timeout'</p> <p>C:/Ruby200-x64/lib/ruby/2.0.0/net/smtp.rb:549:in `do_start'</p> <p>C:/Ruby200-x64/lib/ruby/2.0.0/net/smtp.rb:519:in `start' mail (2.5.4)</p> <p>lib/mail/network/delivery_methods/smtp.rb:112:in `deliver!' mail</p> <p>(2.5.4) lib/mail/message.rb:2129:in `do_delivery' mail (2.5.4)</p> <p>lib/mail/message.rb:232:in `block in deliver'</p> </blockquote> <p>In development.rb:</p> <pre><code>config.action_mailer.default_url_options = { :host =&gt; 'localhost:3000' } </code></pre> <p>Setup_Mail initializer: </p> <pre><code>ActionMailer::Base.smtp_settings = { :enable_starttls_auto =&gt; true, :address =&gt; 'smtp.gmail.com', :port =&gt; 587, :domain =&gt; 'mydomain.com', :authentication =&gt; 'plain', :user_name =&gt; 'info@mydomain.com', :password =&gt; 'secret' } </code></pre> <p>Any suggestions?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload