Use gmail as a mailer for your Rails App #9
RaphaelP07
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
check niyo yung timestamp 2:00-3:10 para ma enable yung use ng gmail for your app:
https://www.youtube.com/watch?v=eYhi_rbnOo8
tapos yung actionmailer methods, di gumana sakin yung ginawa dito. bale gumana siya nung nilagay ko sa config/environment.rb file yung methods instead of sa config/environments/development.rb. eto yung code ko na dinagdag for reference:
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
address: 'smtp.gmail.com',
port: 587,
domain: 'localhost:3000',
user_name: ENV['MAILER_EMAIL'],
password: ENV['MAILER_PASS'],
authentication: 'plain',
enable_starttls_auto: true,
open_timeout: 5,
read_timeout: 5 }
nahanap ko yung solution dito:
https://www.youtube.com/watch?v=Gxq2KHxq0H0
Beta Was this translation helpful? Give feedback.
All reactions