Skip to content

Commit

Permalink
Merge pull request #2583 from mkllnk/seed-mail-connection-type
Browse files Browse the repository at this point in the history
Configure mail TLS or SSL connection when seeding
  • Loading branch information
mkllnk authored Aug 26, 2018
2 parents 8eee8f9 + b158c92 commit 44faa11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/application.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ SMTP_USERNAME: 'ofn'
SMTP_PASSWORD: 'f00d'

# Optional mail settings
# MAIL_SECURE_CONNECTION: 'TLS' # 'None' (default), 'SSL' or 'TLS'
# MAILS_FROM: [email protected]
# MAIL_BCC: [email protected]

Expand Down
2 changes: 1 addition & 1 deletion db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def create_mail_method
preferred_mail_auth_type: 'login',
preferred_smtp_username: ENV.fetch('SMTP_USERNAME'),
preferred_smtp_password: ENV.fetch('SMTP_PASSWORD'),
preferred_secure_connection_type: 'None',
preferred_secure_connection_type: ENV.fetch('MAIL_SECURE_CONNECTION', 'None'),
preferred_mails_from: ENV.fetch('MAILS_FROM', "no-reply@#{ENV.fetch('MAIL_DOMAIN')}"),
preferred_mail_bcc: ENV.fetch('MAIL_BCC', ''),
preferred_intercept_email: ''
Expand Down

0 comments on commit 44faa11

Please sign in to comment.