Methods
A
D
E
H
I
P
W
Instance Public methods
attachment_with_content(hash = {})
# File actionmailer/test/mailers/base_mailer.rb, line 35
def attachment_with_content(hash = {})
  attachments['invoice.pdf'] = 'This is test File content'
  mail(hash)
end
attachment_with_hash()
# File actionmailer/test/mailers/base_mailer.rb, line 40
def attachment_with_hash
  attachments['invoice.jpg'] = { :data => ::Base64.encode64("\312\213\254\232)b"),
                                 :mime_type => "image/x-jpg",
                                 :transfer_encoding => "base64" }
  mail
end
attachment_with_hash_default_encoding()
# File actionmailer/test/mailers/base_mailer.rb, line 47
def attachment_with_hash_default_encoding
  attachments['invoice.jpg'] = { :data => "\312\213\254\232)b",
                                 :mime_type => "image/x-jpg" }
  mail
end
different_layout(layout_name='')
# File actionmailer/test/mailers/base_mailer.rb, line 108
def different_layout(layout_name='')
  mail do |format|
    format.text { render :layout => layout_name }
    format.html { render :layout => layout_name }
  end
end
email_with_translations()
# File actionmailer/test/mailers/base_mailer.rb, line 115
def email_with_translations
  mail :body => render("email_with_translations", :formats => [:html])
end
explicit_different_template(template_name='')
# File actionmailer/test/mailers/base_mailer.rb, line 101
def explicit_different_template(template_name='')
  mail do |format|
    format.text { render :template => "#{mailer_name}/#{template_name}" }
    format.html { render :template => "#{mailer_name}/#{template_name}" }
  end
end
explicit_multipart(hash = {})
# File actionmailer/test/mailers/base_mailer.rb, line 62
def explicit_multipart(hash = {})
  attachments['invoice.pdf'] = 'This is test File content' if hash.delete(:attachments)
  mail(hash) do |format|
    format.text { render :text => "TEXT Explicit Multipart" }
    format.html { render :text => "HTML Explicit Multipart" }
  end
end
explicit_multipart_templates(hash = {})
# File actionmailer/test/mailers/base_mailer.rb, line 70
def explicit_multipart_templates(hash = {})
  mail(hash) do |format|
    format.html
    format.text
  end
end
explicit_multipart_with_any(hash = {})
# File actionmailer/test/mailers/base_mailer.rb, line 77
def explicit_multipart_with_any(hash = {})
  mail(hash) do |format|
    format.any(:text, :html){ render :text => "Format with any!" }
  end
end
explicit_multipart_with_one_template(hash = {})
# File actionmailer/test/mailers/base_mailer.rb, line 90
def explicit_multipart_with_one_template(hash = {})
  mail(hash) do |format|
    format.html
    format.text
  end
end
explicit_multipart_with_options(include_html = false)
# File actionmailer/test/mailers/base_mailer.rb, line 83
def explicit_multipart_with_options(include_html = false)
  mail do |format|
    format.text(:content_transfer_encoding => "base64"){ render "welcome" }
    format.html{ render "welcome" } if include_html
  end
end
html_only(hash = {})
# File actionmailer/test/mailers/base_mailer.rb, line 22
def html_only(hash = {})
  mail(hash)
end
implicit_different_template(template_name='')
# File actionmailer/test/mailers/base_mailer.rb, line 97
def implicit_different_template(template_name='')
  mail(:template_name => template_name)
end
implicit_multipart(hash = {})
# File actionmailer/test/mailers/base_mailer.rb, line 53
def implicit_multipart(hash = {})
  attachments['invoice.pdf'] = 'This is test File content' if hash.delete(:attachments)
  mail(hash)
end
implicit_with_locale(hash = {})
# File actionmailer/test/mailers/base_mailer.rb, line 58
def implicit_with_locale(hash = {})
  mail(hash)
end
inline_attachment()
# File actionmailer/test/mailers/base_mailer.rb, line 30
def inline_attachment
  attachments.inline['logo.png'] = "\312\213\254\232"
  mail
end
plain_text_only(hash = {})
# File actionmailer/test/mailers/base_mailer.rb, line 26
def plain_text_only(hash = {})
  mail(hash)
end
welcome(hash = {})
# File actionmailer/test/mailers/base_mailer.rb, line 8
def welcome(hash = {})
  headers['X-SPAM'] = "Not SPAM"
  mail({:subject => "The first email on new API!"}.merge!(hash))
end
welcome_from_another_path(path)
# File actionmailer/test/mailers/base_mailer.rb, line 18
def welcome_from_another_path(path)
  mail(:template_name => "welcome", :template_path => path)
end
welcome_with_headers(hash = {})
# File actionmailer/test/mailers/base_mailer.rb, line 13
def welcome_with_headers(hash = {})
  headers hash
  mail
end
with_nil_as_return_value(hash = {})
# File actionmailer/test/mailers/base_mailer.rb, line 122
def with_nil_as_return_value(hash = {})
  mail(:template_name => "welcome")
  nil
end
without_mail_call()
# File actionmailer/test/mailers/base_mailer.rb, line 119
def without_mail_call
end