small medium large xlarge

Generic-user-small
04 Oct 2011, 15:12
Javier Q (7 posts)

Hi,

Just a quick question,

I’m beggining chapter 14 and everything seems to work, but when I checkout, I don’t get any email is there any other extra configuration that I have to do? What I have in config/enviroments/development.rb

  Rdepot::Application.configure do
    config.action_mailer.delivery_method = :smtp

    config.action_mailer.smtp_settings = {
      address: "smtp.gmail.com",
      port:    587,
      domain:  "gmail.com",
      authentication: "plain",
      user_name: "xxxxxxxxx@gmail.com",
      password: "yyyyyyyy",
      enable_starttls_auto: true
    }
  end  

I’m using a gmail account, but I’m not receiving any email

Generic-user-small
06 Sep 2012, 17:05
Daniel Macho (2 posts)

For the record:

I had the same issue using google apps with my own domain.

I insisted a lot with 465 port provided in every documentation it is stated that is the same. But only until I changed the port to 587 it worked out both in :plain or :login mode (see configuration at the bottom).

Surprisingly enough, I have got JIRA installed in the same server and outgoing email is configured using port 465 (SMTPS, TLS) and not only it works just fine but if using 587 won’t work.

So there’s a difference between these two ports. I’d appreciate if someone could clarify.

# Set SMTP method and configuration to send emails using # Google Apps account

config.action_mailer.raise_delivery_errors = true config.action_mailer.delivery_method = :smtp config.action_mailer.perform_deliveries = true; config.action_mailer.default_url_options = { host: “yourhost.com” } config.action_mailer.smtp_settings = { address: “smtp.gmail.com”, port: 587, domain: “yourhost.com”, authentication: :login, user_name: “account@yourhost.com”, password: “thepwd”, enable_starttls_auto: true }

You must be logged in to comment