API15

JMail

From Joomla! Documentation

Revision as of 17:24, 22 March 2010 by Doxiki (talk | contribs) (New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JMail}} ===Defined in=== libraries...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The "API15" 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.

[Edit Descripton] Template:Description:JMail

Defined in[edit]

libraries/joomla/mail/mail.php

Methods[edit]

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[edit]

jimport( 'joomla.mail.mail' );

[Edit See Also] Template:SeeAlso:JMail

Examples[edit]

<CodeExamplesForm />