Actions

API15

Difference between revisions of "JMail"

From Joomla! Documentation

(New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JMail}} ===Defined in=== libraries...)
 
Line 52: Line 52:
 
|Returns a reference to a global e-mail object, only creating it if it doesn't already exist.
 
|Returns a reference to a global e-mail object, only creating it if it doesn't already exist.
 
|}
 
|}
 +
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.mail.mail' );</source>
 
<source lang="php">jimport( 'joomla.mail.mail' );</source>

Revision as of 12:39, 25 March 2010

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

Contents

Defined in

libraries/joomla/mail/mail.php

Methods

Method name Description
JMail Constructor
Send mixed True if successful, a JError object otherwise
setSender Set the E-Mail sender
setSubject Set the E-Mail subject
setBody Set the E-Mail body
addRecipient Add recipients to the email
addCC Add carbon copy recipients to the email
addBCC Add blind carbon copy recipients to the email
addAttachment Add file attachments to the email
addReplyTo Add Reply to e-mail address(es) to the e-mail
useSendmail Use sendmail for sending the e-mail
useSMTP Use SMTP for sending the e-mail
getInstance Returns a reference to a global e-mail object, only creating it if it doesn't already exist.

Importing

jimport( 'joomla.mail.mail' );

[Edit See Also] SeeAlso:JMail

Examples

<CodeExamplesForm />