JMail: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 1: | Line 1: | ||
===Defined in=== | ===Defined in=== | ||
libraries/joomla/mail/mail.php | libraries/joomla/mail/mail.php | ||
| Line 57: | Line 55: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JMail | category=JMail | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 00:56, 25 March 2017
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 |
| isHTML | Sends the mail as html if set true |
| getInstance | Returns a reference to a global e-mail object, only creating it if it doesn't already exist. |
Importing
jimport( 'joomla.mail.mail' );
Examples
Code Examples