Sha256: ed87ceb168bf48bb3cd946c4f5ec9be9ab5c5932e4092783d6f5510e9c69d090

Contents?: true

Size: 1020 Bytes

Versions: 6

Compression:

Stored size: 1020 Bytes

Contents

# encoding: utf-8

via = (ENV['RACK_ENV'] == 'test') ? :test : :smtp
via_options = case ENV['RACK_ENV']
              when 'development'
                { address: 'localhost', port: '1025' }
              when 'test'
                {}
              when 'staging'
                {
                  address: 'mailtrap.io',
                  port: '2525',
                  user_name: 'example',
                  password: 'example',
                  authentication: :login,
                  domain: 'staging.example.com'
                }
              when 'production'
                {
                  address: 'smtp.example.com',
                  port: '587',
                  user_name: 'example',
                  password: 'example',
                  authentication: :login,
                  domain: 'example.com'
                }
              end

Pony.options = {
  charset: 'utf-8',
  from: 'Example <example@example.com>',
  text_part_charset: 'utf-8',
  via: via,
  via_options: via_options
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
daiku-0.2.2 lib/daiku/_app/config/pony.rb.tt
daiku-0.2.1 lib/daiku/_app/config/pony.rb.tt
daiku-0.2.0 lib/daiku/_app/config/pony.rb.tt
daiku-0.1.1 lib/daiku/_app/config/pony.rb.tt
daiku-0.1.0 lib/daiku/_app/config/pony.rb.tt
daiku-0.0.12 lib/daiku/_templates/pony.rb.tt