Sha256: 7d50da32ed523cce2f77b17a34250e726ec83c016c6b10b08eed617ce14f7c95

Contents?: true

Size: 785 Bytes

Versions: 2

Compression:

Stored size: 785 Bytes

Contents

require 'rubygems'
require 'action_mailer'

# configure ActionMailer
ActionMailer::Base.template_root = "."

require File.join(File.dirname(__FILE__), "..", "lib", 'sanitize_email')


class SampleMailer < ActionMailer::Base
  
  def gmail_override
    @recipients = "to_real@email.com"
    @cc         = "cc_real@email.com"
    @bcc        = "bcc_real@email.com"

    @subject = "Hello there"
    
    part :content_type => "text/html", :body => "Hello there"
  end
  
  def gmail_override_multiple_recipient
    @recipients = ["to_0_real@email.com", "to_1_real@email.com"]
    @cc         = "cc_real@email.com"
    @bcc        = "bcc_real@email.com"

    @subject = "Hello there, multiple"
    
    part :content_type => "text/html", :body => "Hello there, multiple."
    
  end

end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
george-sanitize_email-0.2.0 test/sample_mailer.rb
pboling-sanitize_email-0.3.0 test/sample_mailer.rb