Difference between revisions of "JMail::addAttachment"
From Joomla! Documentation
(Layout updates) |
m (preparing for archive only) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
Add file attachments to the email. | Add file attachments to the email. | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
− | public | + | public function addAttachment ($attachment) |
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 27: | Line 22: | ||
|- | |- | ||
|} | |} | ||
− | + | * '''Returns''' Returns this object for chaining. | |
− | Returns this object for chaining. | + | * '''Defined''' on line 239 of libraries/joomla/mail/mail.php |
− | + | * '''Since''' {{JVer|11.1 }} | |
− | libraries/joomla/mail/mail.php | ||
− | * | ||
− | |||
===See also=== | ===See also=== | ||
− | + | * {{JVer|11.1}} '''JMail::addAttachment source code''' on [[jplatform:mail/mail.php#cl-231|BitBucket]] | |
− | + | * {{JVer|11.1}} Class [[API17:JMail|JMail]] | |
− | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Mail|Mail]] | |
− | * | + | * [[API17:JMail::addAttachment|Other versions of JMail::addAttachment]] |
− | * [[JMail::addAttachment|Other versions of | + | |
− | + | ||
− | ===Examples=== | + | ===User contributed notes=== |
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JMail::addAttachment | category=JMail::addAttachment | ||
− | + | namespace=CodeExample | |
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category: | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Latest revision as of 22:25, 24 March 2017
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JMail::addAttachment[edit]
Description[edit]
Add file attachments to the email.
public function addAttachment ($attachment)
Parameter | Type | Default | Description |
---|---|---|---|
$attachment | mixed | Either a string or array of strings [filenames] |
- Returns Returns this object for chaining.
- Defined on line 239 of libraries/joomla/mail/mail.php
- Since
See also[edit]
- JMail::addAttachment source code on BitBucket
- Class JMail
- Subpackage Mail
- Other versions of JMail::addAttachment
User contributed notes[edit]
Code Examples[edit]