Sha256: f5280153cc66dc54f11730a9dd0aad7ce6d80f311cc5a35e2df40dafc6a2e7f2

Contents?: true

Size: 398 Bytes

Versions: 1

Compression:

Stored size: 398 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?

      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-0.1.2 lib/no_notifier_needed/sender.rb