Skip to content

Commit 5438aab

Browse files
javiereguiluzOskarStark
authored andcommitted
[Mailer] Added a note about using absolute URLs in mailer
1 parent 47e495b commit 5438aab

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
@@ -200,7 +200,8 @@ Use the ``attachFromPath()`` method to attach files that exist on your file syst
200200
->attachFromPath('/path/to/documents/privacy.pdf', 'Privacy Policy')
201201
// optionally you can provide an explicit MIME type (otherwise it's guessed)
202202
->attachFromPath('/path/to/documents/contract.doc', 'Contract', 'application/msword')
203-
// you can also use an absolute url
203+
// you can also use an absolute URL if your PHP config allows getting URLs using fopen()
204+
// (this is not recommended because your application may or may not work depending on PHP config)
204205
->attachFromPath('http://example.com/path/to/documents/contract.doc', 'Contract', 'application/msword')
205206
;
206207

0 commit comments

Comments
 (0)