Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cookbook/email/email.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ template might look something like this:
{# Makes an absolute URL to the /images/logo.png file #}
<img src="{{ absolute_url(asset('images/logo.png')) }}"

.. versionadded:: 2.7
The ``absolute_url()`` function was introduced in Symfony 2.7. Prior
to 2.7, the ``asset()`` function has an argument to enable returning
an absolute URL.

The ``$message`` object supports many more options, such as including attachments,
adding HTML content, and much more. Fortunately, Swift Mailer covers the topic
of `Creating Messages`_ in great detail in its documentation.
Expand Down