Class: CommandTower::Configuration::Email::Config
- Includes:
- ClassComposer::Generator
- Defined in:
- lib/command_tower/configuration/email/config.rb
Constant Summary collapse
- ASSIGNMENT =
Proc.new do |key, value| hash = Rails.configuration.action_mailer.smtp_settings ||= {} Rails.configuration.action_mailer.smtp_settings = hash.merge({key => value}) end
- ACTION_MAILER =
Proc.new do |key, value| Rails.configuration.action_mailer.public_send(:"#{key}=", value) end
Instance Method Summary collapse
-
#gmail!(port: 587, address: "smtp.gmail.com", authentication: "plain", enable_starttls_auto: true) ⇒ Object
Non-secret Gmail SMTP behavior helper.
Instance Method Details
#gmail!(port: 587, address: "smtp.gmail.com", authentication: "plain", enable_starttls_auto: true) ⇒ Object
Non-secret Gmail SMTP behavior helper. Credentials: config.credentials.smtp.* or ENV.
56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/command_tower/configuration/email/config.rb', line 56 def gmail!( port: 587, address: "smtp.gmail.com", authentication: "plain", enable_starttls_auto: true ) method(:port=).call(port) method(:address=).call(address) method(:authentication=).call(authentication) method(:enable_starttls_auto=).call(enable_starttls_auto) end |