API17

Difference between revisions of "JMail"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
m (preparing for archive only)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<span class="editsection" style="font-size:76%;">
+
=={{JVer|11.1}} JMail==
<nowiki>[</nowiki>[[Description:JMail|Edit Descripton]]<nowiki>]</nowiki>
+
===Description===
</span>
+
 
{{Description:JMail}}
+
 
===Defined in===
 
libraries/joomla/mail/mail.php
 
===Subpackage===
 
[[Subpackage Mail/11.1|Mail]]
 
===Extends===
 
===Extended by===
 
 
===Methods===
 
===Methods===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
 +
!Visibility
 
!Method name
 
!Method name
 
!Description
 
!Description
 
|-
 
|-
|[[JMail::__construct/11.1|__construct]]
+
|public
 +
|[[API17:JMail::__construct|__construct]]
 
|Constructor.  
 
|Constructor.  
 
|-
 
|-
|[[JMail::addAttachment/11.1|addAttachment]]
+
|public
 +
|[[API17:JMail::addAttachment|addAttachment]]
 
|Add file attachments to the email.  
 
|Add file attachments to the email.  
 
|-
 
|-
|[[JMail::addBCC/11.1|addBCC]]
+
|public
 +
|[[API17:JMail::addBCC|addBCC]]
 
|Add blind carbon copy recipients to the email.  
 
|Add blind carbon copy recipients to the email.  
 
|-
 
|-
|[[JMail::addCC/11.1|addCC]]
+
|public
 +
|[[API17:JMail::addCC|addCC]]
 
|Add carbon copy recipients to the email.  
 
|Add carbon copy recipients to the email.  
 
|-
 
|-
|[[JMail::addRecipient/11.1|addRecipient]]
+
|public
 +
|[[API17:JMail::addRecipient|addRecipient]]
 
|Add recipients to the email.  
 
|Add recipients to the email.  
 
|-
 
|-
|[[JMail::addReplyTo/11.1|addReplyTo]]
+
|public
 +
|[[API17:JMail::addReplyTo|addReplyTo]]
 
|Add Reply to email address(es) to the email.  
 
|Add Reply to email address(es) to the email.  
 
|-
 
|-
|[[JMail::Send/11.1|Send]]
+
|public
 +
|[[API17:JMail::Send|Send]]
 
|Send the mail.  
 
|Send the mail.  
 
|-
 
|-
|[[JMail::sendAdminMail/11.1|sendAdminMail]]
+
|public
 +
|[[API17:JMail::sendAdminMail|sendAdminMail]]
 
|Sends mail to administrator for approval of a user submission.  
 
|Sends mail to administrator for approval of a user submission.  
 
|-
 
|-
|[[JMail::sendMail/11.1|sendMail]]
+
|public
 +
|[[API17:JMail::sendMail|sendMail]]
 
|Function to send an email.  
 
|Function to send an email.  
 
|-
 
|-
|[[JMail::setBody/11.1|setBody]]
+
|public
 +
|[[API17:JMail::setBody|setBody]]
 
|Set the email body.  
 
|Set the email body.  
 
|-
 
|-
|[[JMail::setSender/11.1|setSender]]
+
|public
 +
|[[API17:JMail::setSender|setSender]]
 
|Set the email sender.  
 
|Set the email sender.  
 
|-
 
|-
|[[JMail::setSubject/11.1|setSubject]]
+
|public
 +
|[[API17:JMail::setSubject|setSubject]]
 
|Set the email subject.  
 
|Set the email subject.  
 
|-
 
|-
|[[JMail::useSendmail/11.1|useSendmail]]
+
|public
 +
|[[API17:JMail::useSendmail|useSendmail]]
 
|Use sendmail for sending the email.  
 
|Use sendmail for sending the email.  
 
|-
 
|-
|[[JMail::useSMTP/11.1|useSMTP]]
+
|public
 +
|[[API17:JMail::useSMTP|useSMTP]]
 
|Use SMTP for sending the email.  
 
|Use SMTP for sending the email.  
 
|-
 
|-
|[[JMail::getInstance/11.1|getInstance]]
+
|public static
 +
|[[API17:JMail::getInstance|getInstance]]
 
|Returns the global email object, only creating it if it doesn't already exist.  
 
|Returns the global email object, only creating it if it doesn't already exist.  
 
|-
 
|-
 
|}
 
|}
 +
* '''Defined in''' libraries/joomla/mail/mail.php
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.mail.mail' );</source>
 
<source lang="php">jimport( 'joomla.mail.mail' );</source>
 
===See also===
 
===See also===
* [[JMail|Other versions of this class]]
+
* {{JVer|11.1}} '''JMail source code''' on [[jplatform:mail/mail.php|BitBucket]]
{{SeeAlso:JMail}}
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage Mail|Mail]]
<span class="editsection" style="font-size:76%;">
+
* [[API17:JMail|Other versions of JMail]]
<nowiki>[</nowiki>[[SeeAlso:JMail|Edit See Also]]<nowiki>]</nowiki>
+
 
</span>
+
 
===Examples===
+
===User contributed notes===
<CodeExamplesForm />
+
=== Code Examples ===
 
<dpl>
 
<dpl>
 
noresultsheader=\n
 
noresultsheader=\n
 
category=JMail
 
category=JMail
category=CodeExample
+
namespace=CodeExample
 
category=ClassExample
 
category=ClassExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JMail]]</noinclude>
+
<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.

Joomla 11.1 JMail[edit]

Description[edit]

Methods[edit]

Visibility Method name Description
public __construct Constructor.
public addAttachment Add file attachments to the email.
public addBCC Add blind carbon copy recipients to the email.
public addCC Add carbon copy recipients to the email.
public addRecipient Add recipients to the email.
public addReplyTo Add Reply to email address(es) to the email.
public Send Send the mail.
public sendAdminMail Sends mail to administrator for approval of a user submission.
public sendMail Function to send an email.
public setBody Set the email body.
public setSender Set the email sender.
public setSubject Set the email subject.
public useSendmail Use sendmail for sending the email.
public useSMTP Use SMTP for sending the email.
public static getInstance Returns the global email object, only creating it if it doesn't already exist.
  • Defined in libraries/joomla/mail/mail.php

Importing[edit]

jimport( 'joomla.mail.mail' );

See also[edit]


User contributed notes[edit]

Code Examples[edit]