Sha256: a1a9fe6d7b2d378e669c2a5fe7438f1bb9a2082870516e76c7d49987908b90bd

Contents?: true

Size: 402 Bytes

Versions: 26

Compression:

Stored size: 402 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

26 entries across 26 versions & 1 rubygems

Version Path
no_notifier_needed-2.4.5 lib/no_notifier_needed/sender.rb
no_notifier_needed-2.4.4 lib/no_notifier_needed/sender.rb
no_notifier_needed-2.4.3 lib/no_notifier_needed/sender.rb
no_notifier_needed-2.4.2 lib/no_notifier_needed/sender.rb
no_notifier_needed-2.4.1 lib/no_notifier_needed/sender.rb
no_notifier_needed-2.4.0 lib/no_notifier_needed/sender.rb
no_notifier_needed-2.3.8 lib/no_notifier_needed/sender.rb
no_notifier_needed-2.3.7 lib/no_notifier_needed/sender.rb
no_notifier_needed-2.3.6 lib/no_notifier_needed/sender.rb
no_notifier_needed-2.3.5 lib/no_notifier_needed/sender.rb
no_notifier_needed-2.3.4 lib/no_notifier_needed/sender.rb
no_notifier_needed-2.3.3 lib/no_notifier_needed/sender.rb
no_notifier_needed-2.3.2 lib/no_notifier_needed/sender.rb
no_notifier_needed-2.3.1 lib/no_notifier_needed/sender.rb
no_notifier_needed-2.3.0 lib/no_notifier_needed/sender.rb
no_notifier_needed-2.2.4 lib/no_notifier_needed/sender.rb
no_notifier_needed-2.2.3 lib/no_notifier_needed/sender.rb
no_notifier_needed-2.2.2 lib/no_notifier_needed/sender.rb
no_notifier_needed-2.2.1 lib/no_notifier_needed/sender.rb
no_notifier_needed-2.2.0 lib/no_notifier_needed/sender.rb