Sha256: c929b3948af623a92c9640e5e5cbb214f8f3e16406866b7a532fdd7a401582d0

Contents?: true

Size: 513 Bytes

Versions: 7

Compression:

Stored size: 513 Bytes

Contents

if ENV['SMTP_PROVIDER'] == 'sendgrid'
  SMTP_USERNAME = ENV.fetch 'SENDGRID_USERNAME'
  SMTP_PASSWORD = ENV.fetch 'SENDGRID_PASSWORD'
else
  SMTP_USERNAME = ENV.fetch 'SMTP_USERNAME'
  SMTP_PASSWORD = ENV.fetch 'SMTP_PASSWORD'
end

SMTP_SETTINGS = {
  address: ENV.fetch('SMTP_ADDRESS'), # example: "smtp.sendgrid.net"
  authentication: :plain,
  domain: ENV.fetch('SMTP_DOMAIN'), # example: "heroku.com"
  enable_starttls_auto: true,
  password: SMTP_PASSWORD,
  port: '587',
  user_name: SMTP_USERNAME
}.freeze

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
philosophies-suspenders-2.2.6 templates/smtp.rb
philosophies-suspenders-2.2.4 templates/smtp.rb
philosophies-suspenders-2.2.3 templates/smtp.rb
philosophies-suspenders-2.2.2 templates/smtp.rb
philosophies-suspenders-2.2.1 templates/smtp.rb
philosophies-suspenders-2.2.0 templates/smtp.rb
philosophies-suspenders-2.1.2 templates/smtp.rb