JMail
From Joomla! Documentation
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 "API17" 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
Subpackage[edit]
Extends[edit]
Extended by[edit]
Methods[edit]
Method name | Description |
---|---|
__construct | Constructor. |
addAttachment | Add file attachments to the email. |
addBCC | Add blind carbon copy recipients to the email. |
addCC | Add carbon copy recipients to the email. |
addRecipient | Add recipients to the email. |
addReplyTo | Add Reply to email address(es) to the email. |
Send | Send the mail. |
sendAdminMail | Sends mail to administrator for approval of a user submission. |
sendMail | Function to send an email. |
setBody | Set the email body. |
setSender | Set the email sender. |
setSubject | Set the email subject. |
useSendmail | Use sendmail for sending the email. |
useSMTP | Use SMTP for sending the email. |
getInstance | Returns the global email object, only creating it if it doesn't already exist. |
Importing[edit]
jimport( 'joomla.mail.mail' );
See also[edit]
Template:SeeAlso:JMail [Edit See Also]
Examples[edit]
<CodeExamplesForm />