Skip to content

Commit 114b2e6

Browse files
committed
Merge branch '4.4'
* 4.4: Add attachment with url
2 parents f9bcdad + 51f0b40 commit 114b2e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mailer.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ Use the ``attachFromPath()`` method to attach files that exist on your file syst
190190
->attachFromPath('/path/to/documents/privacy.pdf', 'Privacy Policy')
191191
// optionally you can provide an explicit MIME type (otherwise it's guessed)
192192
->attachFromPath('/path/to/documents/contract.doc', 'Contract', 'application/msword')
193+
// you can also use an absolute url
194+
->attachFromPath('http://example.com/path/to/documents/contract.doc', 'Contract', 'application/msword')
193195
;
194196

195197
Alternatively you can use the ``attach()`` method to attach contents from a stream::

0 commit comments

Comments
 (0)