API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
JMail::addAttachment | ( | $ | attachment | ) |
Add file attachments to the email
public
mixed | $attachment | Either a string or array of strings [filenames] |
Références $file.
JMail::addBCC | ( | $ | bcc | ) |
Add blind carbon copy recipients to the email
public
mixed | $cc | Either a string or array of strings [e-mail address(es)] |
Références JMailHelper::cleanLine().
JMail::addCC | ( | $ | cc | ) |
Add carbon copy recipients to the email
public
mixed | $cc | Either a string or array of strings [e-mail address(es)] |
Références JMailHelper::cleanLine().
JMail::addRecipient | ( | $ | recipient | ) |
Add recipients to the email
public
mixed | $recipient | Either a string or array of strings [e-mail address(es)] |
Références JMailHelper::cleanLine().
JMail::addReplyTo | ( | $ | replyto | ) |
Add Reply to e-mail address(es) to the e-mail
public
array | $reply | Either an array or multi-array of form
array( [0] => E-Mail Address [1] => Name ) |
Références JMailHelper::cleanLine().
& JMail::getInstance | ( | $ | id = 'Joomla' | ) | [static] |
Returns a reference to a global e-mail object, only creating it if it doesn't already exist.
This method must be invoked as:
$mail =& JMail::getInstance();
NOTE: If you need an instance to use that does not have the global configuration values, use an id string that is not 'Joomla'.
public
string | $id | The id string for the JMail instance [optional] |
Références $id.
Référencé par JFactory::_createMailer().
JMail::JMail | ( | ) |
Constructor
& JMail::Send | ( | ) |
Réimplémentée à partir de PHPMailer.
Références JText::_(), et JError::raiseNotice().
JMail::setBody | ( | $ | content | ) |
Set the E-Mail body
public
string | $content | Body of the e-mail |
Références $content, et JMailHelper::cleanText().
JMail::setSender | ( | $ | from | ) |
Set the E-Mail sender
public
array | $from | E-Mail address and Name of sender
array( [0] => E-Mail Address [1] => Name ) |
Références JMailHelper::cleanLine(), elseif, et JError::raiseWarning().
JMail::setSubject | ( | $ | subject | ) |
Set the E-Mail subject
public
string | $subject | Subject of the e-mail |
Références JMailHelper::cleanLine().
JMail::useSendmail | ( | $ | sendmail = null | ) |
Use sendmail for sending the e-mail
public
string | $sendmail | Path to sendmail [optional] |
JMail::useSMTP | ( | $ | auth = null , |
$ | host = null , |
||
$ | user = null , |
||
$ | pass = null , |
||
$ | secure = null , |
||
$ | port = 25 |
||
) |
Use SMTP for sending the e-mail
public
string | $auth | SMTP Authentication [optional] |
string | $host | SMTP Host [optional] |
string | $user | SMTP Username [optional] |
string | $pass | SMTP Password [optional] |
string | $secure | SMTP Secure ssl,tls [optinal] |
string | $port | SMTP Port [optional] |