Search code examples
ruby-on-railsemailsmtpactionmailerrackspace

rackspace smtp for ActionMailer


I want to use rackspace smtp with my rails app (redmine) but if I try to add it normally it doesn't work.

production:
  delivery_method: :smtp
  smtp_settings:
    enable_starttls_auto: true
    address: "secure.emailsrvr.com"
    port: '465'
    authentication: :plain
    user_name: "motbro@rubyonrails.org"
    password: "YDXOzZ"

Solution

  • The problem was that I need to force the tls mode and use login type of authentication:

    production:
      delivery_method: :smtp
      smtp_settings:
        tls: true
        address: "secure.emailsrvr.com"
        port: '465'
        authentication: :login
        user_name: "motbro@rubyonrails.org"
        password: "YDXOzZ"