From bb0b55b7cbc9f5b8785e264b36e1e086fde248d9 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 7 Sep 2020 09:45:50 +0200 Subject: [PATCH] do not document adding attachments through URLs --- mailer.rst | 3 --- 1 file changed, 3 deletions(-) diff --git a/mailer.rst b/mailer.rst index b7d82050c52..fa737357967 100644 --- a/mailer.rst +++ b/mailer.rst @@ -299,9 +299,6 @@ 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 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') ; Alternatively you can use the ``attach()`` method to attach contents from a stream::