Ruby on Rails Thursday, July 20, 2017

On 20 July 2017 at 09:46, eben sinaga <ebenpelangiku@gmail.com> wrote:
> This code from my config
>
> config.action_mailer.default_url_options = { :host =>
> 'https://www.handbo.id' }
> # ActionMailer Config
> # Setup for production - deliveries, no errors raised
> config.action_mailer.delivery_method = :smtp
> config.action_mailer.perform_deliveries = true
> config.action_mailer.raise_delivery_errors = false
> config.action_mailer.default :charset => "utf-8"
>
> config.action_mailer.smtp_settings = {
> :address => "smtp.gmail.com",
> :port => 587,
> :user_name => ENV['gmail_username'],
> :password => ENV['gmail_password'],
> :authentication => "plain",
> :enable_starttls_auto => true
> }

I don't know about sending email via gmail from Heroku but google
found this which might be relevant
https://blog.heroku.com/tech_sending_email_with_gmail

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtSAi4XxLZw40%3DPjdutHN91UBF%2BQeDFmTxTqHJ1LChJ8g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment