aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/CHANGELOG.md
blob: 9fdda52f77607150e8299c76639f7f7c1f7a6750 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
*   MailerGenerator now generates layouts by default. HTML mailer layout will
    include `<html>` and `<body>` tags which will help to reduce spam score in
    some spam detection engines. Mailers will now inherit from `ApplicationMailer`
    which sets the default layout.

    *Andy Jeffries*

*   `link_to` and `url_for` generate URLs by default in templates, it is no
    longer needed to pass `only_path: false`.

    Fixes #16497 and #16589.

    *Xavier Noria*, *Richard Schneeman*

*   Attachments can be added while rendering the mail template.

    Fixes #16974.

    *Christian Felder*

*   Added `#deliver_later`, `#deliver_now` and deprecate `#deliver` in favour of
    `#deliver_now`. `#deliver_later` will enqueue a job to render and deliver
    the mail instead of delivering it right at that moment. The job is enqueued
    using the new Active Job framework in Rails, and will use whatever queue is
    configured for Rails.

    *DHH*, *Abdelkader Boudih*, *Cristian Bica*

*   Make `ActionMailer::Previews` methods class methods. Previously they were
    instance methods and `ActionMailer` tries to render a message when they
    are called.

    *Cristian Bica*

*   Deprecate `*_path` helpers in email views. When used they generate
    non-working links and are not the intention of most developers. Instead
    we recommend to use `*_url` helper.

    *Richard Schneeman*

*   Raise an exception when attachments are added after `mail` was called.
    This is a safeguard to prevent invalid emails.

    Fixes #16163.

    *Yves Senn*

*   Add `config.action_mailer.show_previews` configuration option.

    This config option can be used to enable the mail preview in environments
    other than development (such as staging).

    Defaults to `true` in development and false elsewhere.

    *Leonard Garvey*

*   Allow preview interceptors to be registered through
    `config.action_mailer.preview_interceptors`.

    See #15739.

    *Yves Senn*

Please check [4-1-stable](https://github.com/rails/rails/blob/4-1-stable/actionmailer/CHANGELOG.md) for previous changes.