Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Add the following to dependencies.rb
- dependency "ambethia-smtp-tls", "1.1.2", :require_as => "smtp-tls" # enables TLS for Net::SMTP
- # Add the following inside the before_app_loads block in init.rb
- # (also make sure to overwrite it for your development.rb and test.rb environments using
- # Merb::Mailer.delivery_method = :test_send)
- Merb::BootLoader.after_app_loads do
- # Configure Merb Mailer
- Merb::Mailer.config = {
- :host => AppConfig.smtp.host,
- :port => AppConfig.smtp.port,
- :user => AppConfig.smtp.user,
- :pass => AppConfig.smtp.pass,
- :auth => AppConfig.smtp.auth,
- :domain => AppConfig.smtp.domain
- }
- end
- # AppConfig is a gem that makes it easy to set site wide variables
- # in merb depending on the environment.
- # Add it to your dependencies
- dependency "merb_app_config", "1.0.2"
- # Set up the folder structure
- # config/app_config/settings.yml
- # config/app_config/development.yml
- # config/app_config/settings.yml <- use instead of production.yml
- # config/app_config/test.yml
- # Setup your settings.yml file to look like this:
- smtp:
- host: smtp.gmail.com
- port: 587
- user: email@flossedtoday.com
- pass: password_here
- auth: :plain
- domain: missmint.com
Add Comment
Please, Sign In to add comment