From 5438aab309a5738bad37d5042b2551aafc9de4ef Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Mon, 22 Jul 2019 08:24:40 +0200 Subject: [PATCH] [Mailer] Added a note about using absolute URLs in mailer --- mailer.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mailer.rst b/mailer.rst index 8fb939ed592..c7fded70b84 100644 --- a/mailer.rst +++ b/mailer.rst @@ -200,7 +200,8 @@ Use the ``attachFromPath()`` method to attach files that exist on your file syst ->attachFromPath('/path/to/documents/privacy.pdf', 'Privacy Policy') // optionally you can provide an explicit MIME type (otherwise it's guessed) ->attachFromPath('/path/to/documents/contract.doc', 'Contract', 'application/msword') - // you can also use an absolute url + // you can also use an absolute URL if your PHP config allows getting URLs using fopen() + // (this is not recommended because your application may or may not work depending on PHP config) ->attachFromPath('http://example.com/path/to/documents/contract.doc', 'Contract', 'application/msword') ;