Posts

Showing posts from November, 2016

MANDRILL MAILER INTEGRATION IN RAILS

Send mail using Mandrill Mailer We will refer :- https://github.com/renz45/mandrill_mailer
Add gem in our gemfilegem 'mandrill_mailer'
If we are using Devise gem then we have to change the devise mailer setting and call our Mailerconfig/devise.rb      config.mailer = 'InvitationMailer'
Add credentials and mailer setting in our ENV file config/environments/development.rbRails.application.configure do
config.action_mailer.delivery_method = :smtp
          config.action_mailer.perform_deliveries = true
          config.action_mailer.smtp_settings = {
                :address                         =>              "smtp.mandrillapp.com",
                :port                               =>              587,
                :enable_starttls_auto   =>              true,
                :user_name                    =>              'customer-service@.........',
                :password                      =>              'TdX2YR_V9Ifgx4CoLfF…