Skip to content

Commit a83a18c

Browse files
committed
Merge branch '4.3' into 4.4
* 4.3: [Mailer] Added a note about using absolute URLs in mailer
2 parents 0a91265 + 27a3548 commit a83a18c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mailer.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ Use the ``attachFromPath()`` method to attach files that exist on your file syst
195195
->attachFromPath('/path/to/documents/privacy.pdf', 'Privacy Policy')
196196
// optionally you can provide an explicit MIME type (otherwise it's guessed)
197197
->attachFromPath('/path/to/documents/contract.doc', 'Contract', 'application/msword')
198-
// you can also use an absolute url
198+
// you can also use an absolute URL if your PHP config allows getting URLs using fopen()
199+
// (this is not recommended because your application may or may not work depending on PHP config)
199200
->attachFromPath('http://example.com/path/to/documents/contract.doc', 'Contract', 'application/msword')
200201
;
201202

0 commit comments

Comments
 (0)