Actions

API17

Difference between revisions of "JMail"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Layout updates)
Line 6: Line 6:
 
===Defined in===
 
===Defined in===
 
libraries/joomla/mail/mail.php
 
libraries/joomla/mail/mail.php
 +
* see source code in [[jplatform:mail/mail.php|BitBucket]]
 
===Subpackage===
 
===Subpackage===
 
[[Subpackage Mail/11.1|Mail]]
 
[[Subpackage Mail/11.1|Mail]]
Line 65: Line 66:
 
<source lang="php">jimport( 'joomla.mail.mail' );</source>
 
<source lang="php">jimport( 'joomla.mail.mail' );</source>
 
===See also===
 
===See also===
 +
* JMail source code in [[jplatform:mail/mail.php|BitBucket]]
 
* [[JMail|Other versions of this class]]
 
* [[JMail|Other versions of this class]]
 
{{SeeAlso:JMail}}
 
{{SeeAlso:JMail}}

Revision as of 16:59, 23 April 2011

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

[Edit Descripton] Description:JMail

Defined in

libraries/joomla/mail/mail.php

Subpackage

Mail

Extends

Extended by

Methods

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

Importing

jimport( 'joomla.mail.mail' );

See also

SeeAlso:JMail [Edit See Also]

Examples

<CodeExamplesForm />