API17:JMail
From Joomla! Documentation
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.
JMail
Description
Description:JMail [Edit Descripton]
Methods
| 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
jimport( 'joomla.mail.mail' );
See also
-
JMail source code on BitBucket
-
Subpackage Mail
- Other versions of JMail
User contributed notes
<CodeExamplesForm />
