Sha256: fbf0346903d654975cc5ed144f890d853adf5d3e257ee2ecfb94b3dd189fc6df
Contents?: true
Size: 867 Bytes
Versions: 1
Compression:
Stored size: 867 Bytes
Contents
module NoNotifierNeeded module Sender def mcp(email_name, args) @template = EmailTemplate.find_by_name(email_name) raise "Email Template name not found" if @template.nil? if @template.send_via_mandrill? ActionMailer::Base.smtp_settings = { :address => "smtp.mandrillapp.com", :port => NoNotifierNeeded.port, :enable_starttls_auto => true, # detects and uses STARTTLS :user_name => NoNotifierNeeded.mandrill_user_name, :password => NoNotifierNeeded.mandrill_password, :authentication => 'login' # Mandrill supports 'plain' or 'login' } end args_to_instance_vars(args) mail_is = mail(get_send_hash) do|format| format.html { render :inline => render_template_body_type(@template) } end return mail_is end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
no_notifier_needed-2.0.15 | lib/no_notifier_needed/sender.rb |