Giter Site home page Giter Site logo

Doesn't Work with Gmail SMTP about mail HOT 7 CLOSED

mikel avatar mikel commented on June 3, 2024
Doesn't Work with Gmail SMTP

from mail.

Comments (7)

whitcomb avatar whitcomb commented on June 3, 2024

I know version 1.2.5 works with Gmail. I haven't tried the latest version (1.3.0).

from mail.

mikel avatar mikel commented on June 3, 2024

It should work with gmail SMTP. You are right, you need to add the OpenSSL::SSL::VERIFY_NONE in by calling smtp.disable_tls in the SMTP configuration.

from mail.

balinterdi avatar balinterdi commented on June 3, 2024

So this was the working config for me:

Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE)

Mail.defaults do
  smtp do
    host "smtp.gmail.com"
    port 25
    user "your_user_here"
    pass "xxx"
    disable_tls
  end
end

from mail.

rohitarondekar avatar rohitarondekar commented on June 3, 2024

Aha! Thats where the OpenSSL::SSL::VERIFY_NONE goes :) Thanks

from mail.

mikel avatar mikel commented on June 3, 2024

This works fine now. The next version of Mail (2.0.0) which will be pushed shortly, has examples of exactly how to configure GMail.

Mikel

from mail.

bentomas avatar bentomas commented on June 3, 2024

I can't find any examples of how to do this in Mail 2.x. Am I just looking in the wrong places?

from mail.

mikel avatar mikel commented on June 3, 2024

OK, it is in the RDoc in the Net::SMTP class, but I just wrote a blog post so Google can find it

How to use Mail and Actionmailer 3 with GMail SMTP

Mikel

from mail.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.