Skip to content

Commit

Permalink
Configure mailgun and mailer settings, awaiting DNS authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
8gentile committed Sep 6, 2017
1 parent 0fd0727 commit febcee8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/mailers/application_mailer.rb
@@ -1,4 +1,4 @@
class ApplicationMailer < ActionMailer::Base
default from: "from@example.com"
default from: "no-reply@ateam.zone"
layout 'mailer'
end
2 changes: 1 addition & 1 deletion app/mailers/invite_mailer.rb
@@ -1,6 +1,6 @@
class InviteMailer < ApplicationMailer

def invitation_email email
mail(to: email, subject: "Your Äteam Invitation")
mail(to: email, subject: "Your Ateam Invitation")
end
end
10 changes: 10 additions & 0 deletions config/environments/development.rb
Expand Up @@ -15,6 +15,16 @@

# Don't care if the mailer can't send.
config.action_mailer.raise_delivery_errors = false
config.action_mailer.delivery_method = :smtp
config.action_mailer.default_options = {from: 'no-reply@ateam.zone'}
config.action_mailer.smtp_settings = {
:port => ENV['MAILGUN_SMTP_PORT'],
:address => ENV['MAILGUN_SMTP_SERVER'],
:user_name => ENV['MAILGUN_SMTP_LOGIN'],
:password => ENV['MAILGUN_SMTP_PASSWORD'],
:domain => 'ateam.zone',
:authentication => :plain,
}

# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log
Expand Down

0 comments on commit febcee8

Please sign in to comment.