JMail: Difference between revisions
From Joomla! Documentation
New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JMail}}
===Defined in===
libraries... |
m clean up |
||
| Line 1: | Line 1: | ||
{{subst:Description:JMail}} | |||
{{Description:JMail}} | |||
===Defined in=== | ===Defined in=== | ||
| Line 61: | Line 58: | ||
<source lang="php">jimport( 'joomla.mail.mail' );</source> | <source lang="php">jimport( 'joomla.mail.mail' );</source> | ||
{{subst:SeeAlso:JMail}} | |||
{{SeeAlso:JMail}} | |||
===Examples=== | ===Examples=== | ||
Revision as of 14:13, 24 March 2017
{{subst:Description:JMail}}
Defined in
libraries/joomla/mail/mail.php
Methods
| Method name | Description |
|---|---|
| __construct | Constructor |
| Send | Send the mail |
| 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 |
| sendMail | Function to send an e-mail |
| sendAdminMail | Sends mail to administrator for approval of a user submission |
| getInstance | Returns the global e-mail object, only creating it if it doesn't already exist. |
Importing
jimport( 'joomla.mail.mail' );
{{subst:SeeAlso:JMail}}
Examples
<CodeExamplesForm />