module PartContainer

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Accessors and helpers that ActionMailer::Base and ActionMailer::Part have in common. Using these helpers you can easily add subparts or attachments to your message:

def my_mail_message(...)
  ...
  part "text/plain" do |p|
    p.body "hello, world"
    p.transfer_encoding "base64"
  end

  attachment "image/jpg" do |a|
    a.body = File.read("hello.jpg")
    a.filename = "hello.jpg"
  end
end

Attributes

Methods (defined here)

Private methods

(1) Implementation detail — not part of the public API.

Type at least 2 characters to search.

↑↓ navigate · open · esc close