added mailer
This commit is contained in:
@@ -35,4 +35,9 @@ Rails.application.configure do
|
||||
|
||||
# Raises error for missing translations
|
||||
# config.action_view.raise_on_missing_translations = true
|
||||
|
||||
config.action_mailer.default_url_options = { host: 'localhost:3000' }
|
||||
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
config.action_mailer.smtp_settings = { address: 'localhost', port: 1025 }
|
||||
end
|
||||
|
||||
@@ -73,4 +73,17 @@ Rails.application.configure do
|
||||
|
||||
# Use default logging formatter so that PID and timestamp are not suppressed.
|
||||
config.log_formatter = ::Logger::Formatter.new
|
||||
|
||||
config.action_mailer.default_url_options = { host: 'ch420.herokuapp.com' }
|
||||
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
config.action_mailer.smtp_settings = {
|
||||
port: '587',
|
||||
address: ENV['SMTP_HOST'],
|
||||
user_name: ENV['SMTP_USER'],
|
||||
password: ENV['SMTP_PASSWORD'],
|
||||
domain: 'hanflegal.ch',
|
||||
authentication: :plain,
|
||||
enable_starttls_auto: true
|
||||
}
|
||||
end
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
de:
|
||||
welcome_email:
|
||||
subject: Besten dank für deine Unterstützung!
|
||||
|
||||
support_type:
|
||||
signer: Ich unterschreibe eine Volksinitiative für die <span class="text-success">Legalisierung von Cannabis</span>.
|
||||
supporter: Ich unterschreibe eine Volksinitiative für die <span class="text-success">Legalisierung von Cannabis</span> und helfe aktiv Unterschriften in meiner Umgebung zu sammeln.
|
||||
|
||||
Reference in New Issue
Block a user