@ -85,18 +85,25 @@ Rails.application.configure do
|
|||||||
host: ENV['CANONICAL_HOST'],
|
host: ENV['CANONICAL_HOST'],
|
||||||
protocol: ENV['CANONICAL_HOST_PROTOCOL'] || 'https'
|
protocol: ENV['CANONICAL_HOST_PROTOCOL'] || 'https'
|
||||||
}
|
}
|
||||||
config.action_mailer.asset_host = ENV['CANONICAL_HOST']
|
config.action_mailer.asset_host = ENV['SMTP_DOMAIN']
|
||||||
|
|
||||||
config.action_mailer.delivery_method = :smtp
|
config.action_mailer.delivery_method = :smtp
|
||||||
config.action_mailer.smtp_settings = {
|
config.action_mailer.smtp_settings = {
|
||||||
address: ENV['SMTP_ADDRESS'],
|
address: 'smtp.gmail.com',
|
||||||
port: (ENV['SMTP_PORT'] || 587).to_i,
|
port: 587,
|
||||||
domain: ENV['SMTP_DOMAIN'],
|
domain: 'wedding.linepe.de',
|
||||||
user_name: ENV['SMTP_USER_NAME'],
|
user_name: ENV['SMTP_USER_NAME'],
|
||||||
password: ENV['SMTP_PASSWORD'],
|
password: ENV['SMTP_PASSWORD'],
|
||||||
authentication: ENV['SMTP_AUTHENTICATION'] || 'plain',
|
authentication: 'plain',
|
||||||
enable_starttls_auto: ENV['SMTP_ENABLE_STARTTLS_AUTO'] || 'true'
|
enable_starttls_auto: 'true'
|
||||||
}
|
}
|
||||||
|
config.action_mailer.default_url_options = { host: 'https://wedding.linepe.de' }
|
||||||
|
config.action_mailer.delivery_method = :letter_opener
|
||||||
|
config.action_mailer.perform_deliveries = true
|
||||||
|
# Don't care if the mailer can't send.
|
||||||
|
config.action_mailer.raise_delivery_errors = false
|
||||||
|
|
||||||
|
config.action_mailer.perform_caching = false
|
||||||
|
|
||||||
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
||||||
# the I18n.default_locale when a translation cannot be found).
|
# the I18n.default_locale when a translation cannot be found).
|
||||||
|
Reference in New Issue
Block a user