1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailer/CHANGELOG.md
Rafael Mendonça França e482dce0ed
Merge pull request #27227 from MQuy/allow-custom-content-type-in-mail-body
Allow to custom content type when setting mailer body
2017-01-06 06:03:41 -05:00

579 B

  • Mime type: allow to custom content type when setting body in headers and attachments.

    Example:

    def test_emails
      attachments["invoice.pdf"] = "This is test File content"
      mail(body: "Hello there", content_type: "text/html")
    end
    

    Minh Quy

  • Exception handling: use rescue_from to handle exceptions raised by mailer actions, by message delivery, and by deferred delivery jobs.

    Jeremy Daer

Please check 5-0-stable for previous changes.