- <%= f.submit t('.send_me_reset_password_instructions') %>
+
+ <%= f.submit t('.send_me_reset_password_instructions'), class: TailwindHelper.primary_button_classes %>
<% end %>
diff --git a/config/environments/development.rb b/config/environments/development.rb
index 326e137..8f8fff0 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -39,6 +39,17 @@ Rails.application.configure do
config.action_mailer.perform_caching = false
+ config.action_mailer.delivery_method = :smtp
+ config.action_mailer.smtp_settings = {
+ user_name: ENV["MAILTRAP_USERNAME"],
+ password: ENV["MAILTRAP_PASSWORD"],
+ address: ENV["MAILTRAP_ADDRESS"],
+ domain: ENV["MAILTRAP_DOMAIN"],
+ port: ENV["MAILTRAP_PORT"],
+ authentication: :cram_md5,
+ }
+ config.action_mailer.default_url_options = { host: ENV["MAILER_DEFAULT_URL_HOST"] }
+
# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 722c5c1..b297ec3 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -64,6 +64,15 @@ Rails.application.configure do
# config.active_job.queue_name_prefix = "x_stake_production"
config.action_mailer.perform_caching = false
+ config.action_mailer.smtp_settings = {
+ user_name: ENV["MAILGUN_SMTP_LOGIN"],
+ password: ENV["MAILGUN_SMTP_PASSWORD"],
+ address: ENV["MAILGUN_SMTP_SERVER"],
+ domain: ENV["MAILGUN_DOMAIN"],
+ port: ENV["MAILGUN_SMTP_PORT"],
+ authentication: :plain,
+ }
+ config.action_mailer.default_url_options = { host: ENV["MAILER_DEFAULT_URL_HOST"] }
# Ignore bad email addresses and do not raise email delivery errors.
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
diff --git a/config/environments/test.rb b/config/environments/test.rb
index bdf4e5b..dcb810d 100644
--- a/config/environments/test.rb
+++ b/config/environments/test.rb
@@ -38,6 +38,7 @@ Rails.application.configure do
config.active_storage.service = :test
config.action_mailer.perform_caching = false
+ config.action_mailer.default_url_options = { host: ENV["MAILER_DEFAULT_URL_HOST"] }
# Tell Action Mailer not to deliver emails to the real world.
# The :test delivery method accumulates sent emails in the
diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb
index afc9e44..54d968e 100644
--- a/config/initializers/devise.rb
+++ b/config/initializers/devise.rb
@@ -24,7 +24,7 @@ Devise.setup do |config|
# Configure the e-mail address which will be shown in Devise::Mailer,
# note that it will be overwritten if you use your own mailer class
# with default "from" parameter.
- config.mailer_sender = "please-change-me-at-config-initializers-devise@example.com"
+ config.mailer_sender = "no-reply@xstake.com.br"
# Configure the class responsible to send e-mails.
# config.mailer = 'Devise::Mailer'