Skip to content

Commit 01a8bcb

Browse files
committed
minor #14186 do not document adding attachments through URLs (xabbuh)
This PR was merged into the 4.4 branch. Discussion ---------- do not document adding attachments through URLs fixes symfony/symfony#38047 Commits ------- bb0b55b do not document adding attachments through URLs
2 parents d506599 + bb0b55b commit 01a8bcb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

mailer.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,6 @@ Use the ``attachFromPath()`` method to attach files that exist on your file syst
299299
->attachFromPath('/path/to/documents/privacy.pdf', 'Privacy Policy')
300300
// optionally you can provide an explicit MIME type (otherwise it's guessed)
301301
->attachFromPath('/path/to/documents/contract.doc', 'Contract', 'application/msword')
302-
// you can also use an absolute URL if your PHP config allows getting URLs using fopen()
303-
// (this is not recommended because your application may or may not work depending on PHP config)
304-
->attachFromPath('http://example.com/path/to/documents/contract.doc', 'Contract', 'application/msword')
305302
;
306303

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

0 commit comments

Comments
 (0)