Ruby on Rails latest stable (v6.1.7.7) - 0 notes

Module deprecated or moved

This module is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

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"

    attachment "image/jpg" do |a|
      a.body = File.read("hello.jpg")
      a.filename = "hello.jpg"
Show files where this module is defined (1 file)
Register or log in to add new notes.