Skip to content

Commit 27a3548

Browse files
committed
minor symfony#11999 [Mailer] Added a note about using absolute URLs in mailer (javiereguiluz)
This PR was squashed before being merged into the 4.3 branch (closes symfony#11999). Discussion ---------- [Mailer] Added a note about using absolute URLs in mailer Fixes symfony#11995. Commits ------- 5438aab [Mailer] Added a note about using absolute URLs in mailer
2 parents 4f16377 + 5438aab commit 27a3548

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy