class Mail::Message
def part(params = {})
end
p.part :content_type => "text/html", :body => "test HTML
\nline #2"
p.part :content_type => "text/plain", :body => "test text\nline #2"
part :content_type => "multipart/alternative", :content_disposition => "inline" do |p|
mail = Mail.new do
Example:
Allows you to add a part in block form to an existing mail message object
def part(params = {}) new_part = Part.new(params) yield new_part if block_given? add_part(new_part) end