Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
Send () | |
setSender ($from) | |
setSubject ($subject) | |
setBody ($content) | |
addRecipient ($recipient, $name='') | |
addCc ($cc, $name='') | |
addBcc ($bcc, $name='') | |
addAttachment ($path, $name='', $encoding='base64', $type='application/octet-stream', $disposition='attachment') | |
clearAttachments () | |
removeAttachment ($index=0) | |
addReplyTo ($replyto, $name='') | |
isHtml ($ishtml=true) | |
isSendmail () | |
useSendmail ($sendmail=null) | |
useSmtp ($auth=null, $host=null, $user=null, $pass=null, $secure=null, $port=25) | |
sendMail ( $from, $fromName, $recipient, $subject, $body, $mode=false, $cc=null, $bcc=null, $attachment=null, $replyTo=null, $replyToName=null) | |
Fonctions membres publiques hérités de PHPMailer | |
__construct ($exceptions=null) | |
__destruct () | |
isHTML ($isHtml=true) | |
isSMTP () | |
isMail () | |
isSendmail () | |
isQmail () | |
addAddress ($address, $name='') | |
addCC ($address, $name='') | |
addBCC ($address, $name='') | |
addReplyTo ($address, $name='') | |
setFrom ($address, $name='', $auto=true) | |
getLastMessageID () | |
punyencodeAddress ($address) | |
send () | |
preSend () | |
postSend () | |
getSMTPInstance () | |
setSMTPInstance (SMTP $smtp) | |
smtpConnect ($options=null) | |
smtpClose () | |
setLanguage ($langcode='en', $lang_path='') | |
getTranslations () | |
addrAppend ($type, $addr) | |
addrFormat ($addr) | |
wrapText ($message, $length, $qp_mode=false) | |
utf8CharBoundary ($encodedText, $maxLength) | |
setWordWrap () | |
createHeader () | |
getMailMIME () | |
getSentMIMEMessage () | |
createBody () | |
headerLine ($name, $value) | |
textLine ($value) | |
addAttachment ( $path, $name='', $encoding=self::ENCODING_BASE64, $type='', $disposition='attachment') | |
getAttachments () | |
encodeString ($str, $encoding=self::ENCODING_BASE64) | |
encodeHeader ($str, $position='text') | |
hasMultiBytes ($str) | |
has8bitChars ($text) | |
base64EncodeWrapMB ($str, $linebreak=null) | |
encodeQP ($string) | |
encodeQ ($str, $position='text') | |
addStringAttachment ( $string, $filename, $encoding=self::ENCODING_BASE64, $type='', $disposition='attachment') | |
addEmbeddedImage ( $path, $cid, $name='', $encoding=self::ENCODING_BASE64, $type='', $disposition='inline') | |
addStringEmbeddedImage ( $string, $cid, $name='', $encoding=self::ENCODING_BASE64, $type='', $disposition='inline') | |
inlineImageExists () | |
attachmentExists () | |
alternativeExists () | |
clearQueuedAddresses ($kind) | |
clearAddresses () | |
clearCCs () | |
clearBCCs () | |
clearReplyTos () | |
clearAllRecipients () | |
clearAttachments () | |
clearCustomHeaders () | |
isError () | |
addCustomHeader ($name, $value=null) | |
getCustomHeaders () | |
msgHTML ($message, $basedir='', $advanced=false) | |
html2text ($html, $advanced=false) | |
set ($name, $value='') | |
secureHeader ($str) | |
sign ($cert_filename, $key_filename, $key_pass, $extracerts_filename='') | |
DKIM_QP ($txt) | |
DKIM_Sign ($signHeader) | |
DKIM_HeaderC ($signHeader) | |
DKIM_BodyC ($body) | |
DKIM_Add ($headers_line, $subject, $body) | |
getToAddresses () | |
getCcAddresses () | |
getBccAddresses () | |
getReplyToAddresses () | |
getAllRecipientAddresses () | |
getOAuth () | |
setOAuth (OAuthTokenProvider $oauth) | |
Fonctions membres publiques statiques | |
static | getInstance ($id='Joomla', $exceptions=true) |
Fonctions membres publiques statiques hérités de PHPMailer | |
static | parseAddresses ($addrstr, $useimap=true, $charset=self::CHARSET_ISO88591) |
static | validateAddress ($address, $patternselect=null) |
static | idnSupported () |
static | rfcDate () |
static | isValidHost ($host) |
static | _mime_types ($ext='') |
static | filenameToType ($filename) |
static | mb_pathinfo ($path, $options=null) |
static | normalizeBreaks ($text, $breaktype=null) |
static | stripTrailingWSP ($text) |
static | getLE () |
static | hasLineLongerThanMax ($str) |
static | quotedString ($str) |
Fonctions membres protégées | |
add ($recipient, $name='', $method='addAddress') | |
Fonctions membres protégées hérités de PHPMailer | |
edebug ($str) | |
addOrEnqueueAnAddress ($kind, $address, $name) | |
addAnAddress ($kind, $address, $name='') | |
sendmailSend ($header, $body) | |
mailSend ($header, $body) | |
smtpSend ($header, $body) | |
generateId () | |
getBoundary ($boundary, $charSet, $contentType, $encoding) | |
endBoundary ($boundary) | |
setMessageType () | |
attachAll ($disposition_type, $boundary) | |
encodeFile ($path, $encoding=self::ENCODING_BASE64) | |
validateEncoding ($encoding) | |
cidExists ($cid) | |
setError ($msg) | |
serverHostname () | |
lang ($key) | |
doCallback ($isSent, $to, $cc, $bcc, $subject, $body, $from, $extra) | |
Attributs protégés statiques | |
static | $instances = array() |
Attributs protégés statiques hérités de PHPMailer | |
static | $IcalMethods |
static | $LE = self::CRLF |
Membres hérités additionnels | |
Attributs publics statiques hérités de PHPMailer | |
static | $validator = 'php' |
Fonctions membres protégées statiques hérités de PHPMailer | |
static | isShellSafe ($string) |
static | isPermittedPath ($path) |
static | fileIsAccessible ($path) |
static | setLE ($le) |
Attributs protégés hérités de PHPMailer | |
$MIMEBody = '' | |
$MIMEHeader = '' | |
$mailHeader = '' | |
$oauth | |
$SingleToArray = [] | |
$smtp | |
$to = [] | |
$cc = [] | |
$bcc = [] | |
$ReplyTo = [] | |
$all_recipients = [] | |
$RecipientsQueue = [] | |
$ReplyToQueue = [] | |
$attachment = [] | |
$CustomHeader = [] | |
$lastMessageID = '' | |
$message_type = '' | |
$boundary = [] | |
$language = [] | |
$error_count = 0 | |
$sign_cert_file = '' | |
$sign_key_file = '' | |
$sign_extracerts_file = '' | |
$sign_key_pass = '' | |
$exceptions = false | |
$uniqueid = '' | |
Email Class. Provides a common interface to send email from the Joomla! Platform
|
protected |
Add recipients to the email.
mixed | $recipient | Either a string or array of strings [email address(es)] |
mixed | $name | Either a string or array of strings [name(s)] |
string | $method | The parent method's name. |
Références $method, $name, $this, PHPMailer\$to, et MailHelper\cleanLine().
Référencé par Mail\addBcc(), Mail\addCc(), Mail\addRecipient(), et Mail\addReplyTo().
addAttachment | ( | $path, | |
$name = '' , |
|||
$encoding = 'base64' , |
|||
$type = 'application/octet-stream' , |
|||
$disposition = 'attachment' |
|||
) |
Add file attachment to the email
mixed | $path | Either a string or array of strings [filenames] |
mixed | $name | Either a string or array of strings [names]. N.B. if this is an array it must contain the same number of elements as the array of paths supplied. |
mixed | $encoding | The encoding of the attachment |
mixed | $type | The mime type |
string | $disposition | The disposition of the attachment |
Références $key, $name, $path, $result, $this, et $type.
Référencé par Mail\sendMail().
addBcc | ( | $bcc, | |
$name = '' |
|||
) |
Add blind carbon copy recipients to the email
mixed | $bcc | Either a string or array of strings [email address(es)] |
mixed | $name | Either a string or array of strings [name(s)] |
phpmailerException | if exception throwing is enabled |
Références PHPMailer\$bcc, $name, $this, et Mail\add().
Référencé par Mail\sendMail().
addCc | ( | $cc, | |
$name = '' |
|||
) |
Add carbon copy recipients to the email
mixed | $cc | Either a string or array of strings [email address(es)] |
mixed | $name | Either a string or array of strings [name(s)] |
phpmailerException | if exception throwing is enabled |
Références PHPMailer\$cc, $name, $this, et Mail\add().
Référencé par Mail\sendMail().
addRecipient | ( | $recipient, | |
$name = '' |
|||
) |
Add recipients to the email
mixed | $recipient | Either a string or array of strings [email address(es)] |
mixed | $name | Either a string or array of strings [name(s)] |
phpmailerException | if exception throwing is enabled |
Références $name, et Mail\add().
Référencé par Mail\sendMail().
addReplyTo | ( | $replyto, | |
$name = '' |
|||
) |
Add Reply to email address(es) to the email
mixed | $replyto | Either a string or array of strings [email address(es)] |
mixed | $name | Either a string or array of strings [name(s)] |
phpmailerException | if exception throwing is enabled |
Références $name, et Mail\add().
Référencé par Mail\sendMail().
clearAttachments | ( | ) |
|
static |
Returns the global email object, only creating it if it doesn't already exist.
NOTE: If you need an instance to use that does not have the global configuration values, use an id string that is not 'Joomla'.
string | $id | The id string for the Mail instance [optional] |
boolean | $exceptions | Flag if Exceptions should be thrown [optional] |
Références PHPMailer\$exceptions, et $id.
Référencé par Factory\createMailer().
isHtml | ( | $ishtml = true | ) |
Sets message type to HTML
boolean | $ishtml | Boolean true or false. |
Références $this.
Référencé par Mail\sendMail().
isSendmail | ( | ) |
Send messages using $Sendmail.
This overrides the parent class to remove the restriction on the executable's name containing the word "sendmail"
Références Factory\getApplication().
Référencé par Mail\useSendmail().
removeAttachment | ( | $index = 0 | ) |
Send | ( | ) |
Send the mail
MailDisabledException | if the mail function is disabled |
phpmailerException | if sending failed |
Références $result, Text\_(), Factory\getApplication(), MailDisabledException\REASON_MAIL_FUNCTION_NOT_AVAILABLE, et MailDisabledException\REASON_USER_DISABLED.
Référencé par Mail\sendMail().
sendMail | ( | $from, | |
$fromName, | |||
$recipient, | |||
$subject, | |||
$body, | |||
$mode = false , |
|||
$cc = null , |
|||
$bcc = null , |
|||
$attachment = null , |
|||
$replyTo = null , |
|||
$replyToName = null |
|||
) |
Function to send an email
string | $from | From email address |
string | $fromName | From name |
mixed | $recipient | Recipient email address(es) |
string | $subject | email subject |
string | $body | Message body |
boolean | $mode | false = plain text, true = HTML |
mixed | $cc | CC email address(es) |
mixed | $bcc | BCC email address(es) |
mixed | $attachment | Attachment file name(s) |
mixed | $replyTo | Reply to email address(es) |
mixed | $replyToName | Reply to name(s) |
MailDisabledException | if the mail function is disabled |
phpmailerException | if exception throwing is enabled |
Références $app, PHPMailer\$attachment, PHPMailer\$bcc, PHPMailer\$cc, $i, $mode, $subject, Mail\addAttachment(), Mail\addBcc(), Mail\addCc(), Mail\addRecipient(), Mail\addReplyTo(), elseif, Factory\getApplication(), Mail\isHtml(), Mail\Send(), Mail\setBody(), Mail\setSender(), et Mail\setSubject().
setBody | ( | $content | ) |
Set the email body
string | $content | Body of the email |
Références $content, $this, et MailHelper\cleanText().
Référencé par Mail\sendMail().
setSender | ( | $from | ) |
Set the email sender
mixed | $from | email address and Name of sender array([0] => email Address, [1] => Name) or as a string |
Références $result, $this, Log\add(), MailHelper\cleanLine(), elseif, PHPMailer\setFrom(), Text\sprintf(), et Log\WARNING.
Référencé par Mail\sendMail().
setSubject | ( | $subject | ) |
Set the email subject
string | $subject | Subject of the email |
Références $subject, $this, et MailHelper\cleanLine().
Référencé par Mail\sendMail().
useSendmail | ( | $sendmail = null | ) |
Use sendmail for sending the email
string | $sendmail | Path to sendmail [optional] |
Références PHPMailer\isMail(), et Mail\isSendmail().
Use SMTP for sending the email
string | $auth | SMTP Authentication [optional] |
string | $host | SMTP Host [optional] |
string | $user | SMTP Username [optional] |
string | $pass | SMTP Password [optional] |
string | $secure | Use secure methods |
integer | $port | The SMTP port |
Références $user, PHPMailer\isMail(), PHPMailer\isSMTP(), et null.
$CharSet = 'utf-8' |
|
staticprotected |