- No changes.
- No changes.
- No changes.
- No changes.
- No changes.
- No changes.
- No changes.
-
Removes
-tfrom default Sendmail arguments to match the underlyingMail::Sendmailsetting.Clayton Liggitt
- No changes.
- No changes.
- No changes.
- No changes.
- No Changes *
-
assert_emailsin block form use the given number as expected value. This makes the error message much easier to understand.Yuji Yaginuma
-
Mailer preview now uses
url_forto fix links to emails for apps running on a subdirectory.Remo Mueller
-
Mailer previews no longer crash when the
mailmethod wasn't called (NullMail).Fixes #19849.
Yves Senn
-
Make sure labels and values line up in mailer previews.
Yves Senn
- No Changes *
- No Changes *
-
MailerGeneratornow generates layouts by default. The HTML mailer layout now includes<html>and<body>tags which improve the spam rating in some spam detection engines. Mailers now inherit fromApplicationMailerwhich sets the default layout.Andy Jeffries
-
link_toandurl_fornow generate URLs by default in templates. Passingonly_path: falseis no longer needed.Fixes #16497 and #16589.
Xavier Noria, Richard Schneeman
-
Attachments can now be added while rendering the mail template.
Fixes #16974.
Christian Felder
-
Add
#deliver_laterand#deliver_nowmethods and deprecate#deliverin favor of#deliver_now.#deliver_laterwill enqueue a job to render and deliver the mail instead of delivering it immediately. The job is enqueued using the new Active Job framework in Rails and will use the queue that you have configured in Rails.DHH, Abdelkader Boudih, Cristian Bica
-
ActionMailer::Previewsare now class methods instead of instance methods.Cristian Bica
-
Deprecate
*_pathhelpers in email views. They generated broken links in email views and were not the intention of most developers. The*_urlhelper is recommended instead.Richard Schneeman
-
Raise an exception when attachments are added after
mailis called. This is a safeguard to prevent invalid emails.Fixes #16163.
Yves Senn
-
Add
config.action_mailer.show_previewsconfiguration option.This configuration option can be used to enable the mail preview in environments other than development (such as staging).
Defaults to
truein development andfalseelsewhere.Leonard Garvey
-
Allow preview interceptors to be registered through
config.action_mailer.preview_interceptors.See #15739.
Yves Senn
Please check 4-1-stable for previous changes.