2
devise gem을 사용하고 있는데 등록 된 사용자에게 전자 메일을 보내도록 구성해야합니까?리소스를 전자 메일로 보내도록 장치를 구성하는 방법은 무엇입니까?
은 내가 몇 가지 링크를 보았다했지만 나에게
devise gem을 사용하고 있는데 등록 된 사용자에게 전자 메일을 보내도록 구성해야합니까?리소스를 전자 메일로 보내도록 장치를 구성하는 방법은 무엇입니까?
은 내가 몇 가지 링크를 보았다했지만 나에게
# ActionMailer Config in development/production rb file
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
config.action_mailer.delivery_method = :smtp
# change to true to allow email to be sent during development
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.smtp_settings = {
address: "smtp.gmail.com",
port: 587,
domain: "mail.google.com",####important
authentication: "plain",
enable_starttls_auto: true,
user_name: ENV["GMAIL_USERNAME"],
password: ENV["GMAIL_PASSWORD"]
}
및
config/initializers/devise.rb
config.mailer_sender = '[email protected]'
도움 호야 이해하지 못했다