API17

Difference between revisions of "JMail::addAttachment"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Updated to r1448:247ba8d88526)
(One intermediate revision by the same user not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JMail::addAttachment|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JMail::addAttachment|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public JMail->addAttachment ($attachment)
+
public function addAttachment ($attachment)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 27: Line 24:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' Returns this object for chaining.
Returns this object for chaining.
+
* '''Defined''' on line 239 of libraries/joomla/mail/mail.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/mail/mail.php
 
===Referenced by===
 
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JMail::addAttachment source code''' on [[jplatform:mail/mail.php#cl-231|BitBucket]]
 +
* {{JVer|11.1}} Class [[JMail/11.1|JMail]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Mail/11.1|Mail]]
 +
* [[JMail::addAttachment|Other versions of JMail::addAttachment]]
 +
{{SeeAlso:JMail::addAttachment}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JMail::addAttachment|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JMail::addAttachment|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JMail/11.1|JMail]]
+
===User contributed notes===
* [[JMail::addAttachment|Other versions of this method]]
 
{{SeeAlso:JMail::addAttachment}}
 
===Examples===
 
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 47: Line 44:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JMail]][[Category:JMail::addAttachment]]</noinclude>
 
<noinclude>[[Category:JMail]][[Category:JMail::addAttachment]]</noinclude>

Revision as of 21:21, 27 April 2011

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.

Joomla 11.1 JMail::addAttachment[edit]

Description[edit]

Add file attachments to the email.

Template:Description:JMail::addAttachment [Edit Descripton]

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 Joomla 11.1

See also[edit]

Template:SeeAlso:JMail::addAttachment [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />