send email error

parent cd996a3b
Pipeline #1298 canceled with stages
in 0 seconds
......@@ -10,7 +10,6 @@ module SampleApp
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 6.1
config.assets.initialize_on_precompile = false
# Configuration for the application, engines, and railties goes here.
#
......
......@@ -33,15 +33,11 @@ Rails.application.configure do
# Store uploaded files on the local file system (see config/storage.yml for options).
config.active_storage.service = :local
config.action_mailer.perform_deliveries = true
# Don't care if the mailer can't send.
config.action_mailer.raise_delivery_errors = true
# Action Mailer
config.action_mailer.default_url_options = { host: 'localhost:3000' } # for absolute urls in email
config.action_mailer.asset_host = "http://localhost:3000" # for image URLs in HTML email
# Allow generating absolute urls with routing url helpers.
Rails.application.routes.default_url_options[:host] = 'localhost:3000'
config.action_mailer.default_url_options = { host: "localhost:3000" , protocol: "http"}
# Use this if developing on localhost.
# config.action_mailer.default_url_options = { host: host, protocol: 'http' }
......
......@@ -6,16 +6,12 @@ Rails.application.configure do
# Code is not reloaded between requests.
config.cache_classes = true
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.delivery_method = :smtp
config.action_mailer.default_url_options = { host: "fathomless-garden-95089.herokuapp.com" , protocol: "https"}
config.action_mailer.smtp_settings = {
address: 'smtp.gmail.com',
port: 587,
domain: 'fathomless-garden-95089.herokuapp.com',
domain: 'heroku.com',
user_name: Rails.application.credentials.dig(:google_smtp, :email),
password: Rails.application.credentials.dig(:google_smtp, :password),
authentication: 'plain',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment