Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 7 additions & 1 deletion en/appendices/5-3-migration-guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,15 @@ Console
Database
--------

- Added ``Query::getDriver()`` helper which returns the ``Driver`` for the current connection
- Added ``Query::getDriver()`` helper which returns the ``Driver`` for the current connection
role by default.

Mailer
------

- Added ``Message::addAttachment()`` for adding attachments to a message. Like
other message methods, it can be accessed via the ``Mailer`` instance as ``$mailer->addAttachment()``.

Routing
-------

Expand Down
6 changes: 6 additions & 0 deletions en/core-libraries/email.rst
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,12 @@ you want the filenames to appear in the recipient's mail client:
a string using the ``data`` option. This allows you to attach files without
needing file paths to them.

.. php:method:: addAttachment(\Psr\Http\Message\UploadedFileInterface|string $path, ?string $name, ?string $mimetype, ?string $contentId, ?bool $contentDisposition)

You can also add attachments using the ``addAttachment()`` method.

$mailer->addAttachment('/full/file/path/file.png');

Relaxing Address Validation Rules
---------------------------------

Expand Down