Joomla Platform
13.1
Documentation des API du framework Joomla Platform
|
Fonctions membres publiques | |
__construct () | |
Send () | |
setSender ($from) | |
setSubject ($subject) | |
setBody ($content) | |
addRecipient ($recipient, $name= '') | |
addCC ($cc, $name= '') | |
addBCC ($bcc, $name= '') | |
addAttachment ($attachment, $name= '', $encoding= 'base64', $type= 'application/octet-stream') | |
addReplyTo ($replyto, $name= '') | |
isHtml ($ishtml=true) | |
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) | |
sendAdminMail ($adminName, $adminEmail, $email, $type, $title, $author, $url=null) | |
Fonctions membres publiques inherited from PHPMailer | |
__construct ($exceptions=false) | |
__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) | |
PreSend () | |
PostSend () | |
SmtpConnect ($options=array()) | |
SmtpClose () | |
SetLanguage ($langcode= 'en', $lang_path= 'language/') | |
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= 'base64', $type= '') | |
GetAttachments () | |
EncodeString ($str, $encoding= 'base64') | |
EncodeHeader ($str, $position= 'text') | |
HasMultiBytes ($str) | |
Base64EncodeWrapMB ($str, $lf=null) | |
EncodeQP ($string, $line_max=76) | |
EncodeQPphp ($string, $line_max=76, $space_conv=false) | |
EncodeQ ($str, $position= 'text') | |
AddStringAttachment ($string, $filename, $encoding= 'base64', $type= '') | |
AddEmbeddedImage ($path, $cid, $name= '', $encoding= 'base64', $type= '') | |
AddStringEmbeddedImage ($string, $cid, $name= '', $encoding= 'base64', $type= '') | |
InlineImageExists () | |
AttachmentExists () | |
AlternativeExists () | |
ClearAddresses () | |
ClearCCs () | |
ClearBCCs () | |
ClearReplyTos () | |
ClearAllRecipients () | |
ClearAttachments () | |
ClearCustomHeaders () | |
IsError () | |
FixEOL ($str) | |
AddCustomHeader ($name, $value=null) | |
MsgHTML ($message, $basedir= '', $advanced=false) | |
html2text ($html, $advanced=false) | |
set ($name, $value= '') | |
SecureHeader ($str) | |
Sign ($cert_filename, $key_filename, $key_pass) | |
DKIM_QP ($txt) | |
DKIM_Sign ($s) | |
DKIM_HeaderC ($s) | |
DKIM_BodyC ($body) | |
DKIM_Add ($headers_line, $subject, $body) |
Fonctions membres publiques statiques | |
static | getInstance ($id= 'Joomla') |
Fonctions membres publiques statiques inherited from PHPMailer | |
static | ValidateAddress ($address) |
static | RFCDate () |
static | _mime_types ($ext= '') |
static | filenameToType ($filename) |
static | mb_pathinfo ($path, $options=null) |
static | NormalizeBreaks ($text, $breaktype="\r\n") |
Fonctions membres protégées | |
add ($recipient, $name= '', $method= 'AddAddress') | |
Fonctions membres protégées inherited from PHPMailer | |
edebug ($str) | |
AddAnAddress ($kind, $address, $name= '') | |
SendmailSend ($header, $body) | |
MailSend ($header, $body) | |
SmtpSend ($header, $body) | |
GetBoundary ($boundary, $charSet, $contentType, $encoding) | |
EndBoundary ($boundary) | |
SetMessageType () | |
AttachAll ($disposition_type, $boundary) | |
EncodeFile ($path, $encoding= 'base64') | |
SetError ($msg) | |
ServerHostname () | |
Lang ($key) | |
doCallback ($isSent, $to, $cc, $bcc, $subject, $body, $from=null) |
Attributs protégés statiques | |
static | $instances = array() |
Additional Inherited Members | |
Attributs protégés inherited from PHPMailer | |
$MIMEBody = '' | |
$MIMEHeader = '' | |
$mailHeader = '' | |
$smtp = null | |
$to = array() | |
$cc = array() | |
$bcc = array() | |
$ReplyTo = array() | |
$all_recipients = array() | |
$attachment = array() | |
$CustomHeader = array() | |
$message_type = '' | |
$boundary = array() | |
$language = array() | |
$error_count = 0 | |
$sign_cert_file = '' | |
$sign_key_file = '' | |
$sign_key_pass = '' | |
$exceptions = false |
JMail::__construct | ( | ) |
|
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. |
InvalidArgumentException |
Définition à la ligne 208 du fichier mail.php.
Références JMailHelper\cleanLine().
JMail::addAttachment | ( | $attachment, | |
$name = '' , |
|||
$encoding = 'base64' , |
|||
$type = 'application/octet-stream' |
|||
) |
Add file attachments to the email
mixed | $attachment | Either a string or array of strings [filenames] |
mixed | $name | Either a string or array of strings [names] |
mixed | $encoding | The encoding of the attachment |
mixed | $type | The mime type |
InvalidArgumentException |
Définition à la ligne 321 du fichier mail.php.
JMail::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)] |
JMail::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)] |
JMail::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)] |
JMail::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)] |
|
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 JMail instance [optional] |
Définition à la ligne 59 du fichier mail.php.
Référencé par JFactory\createMailer().
JMail::isHtml | ( | $ishtml = true | ) |
Sets message type to HTML
boolean | $ishtml | Boolean true or false. |
JMail::Send | ( | ) |
Send the mail
RuntimeException |
Réimplémentée à partir de PHPMailer.
Définition à la ligne 77 du fichier mail.php.
Références JText\_(), JFactory\getApplication(), JFactory\getConfig(), et JError\raiseNotice().
JMail::sendAdminMail | ( | $adminName, | |
$adminEmail, | |||
$email, | |||
$type, | |||
$title, | |||
$author, | |||
$url = null |
|||
) |
Sends mail to administrator for approval of a user submission
string | $adminName | Name of administrator |
string | $adminEmail | Email address of administrator |
string | [NOT USED TODO: Deprecate?] | |
string | $type | Type of item to approve |
string | $title | Title of item to approve |
string | $author | Author of item to approve |
string | $url | A URL to included in the mail |
Définition à la ligne 529 du fichier mail.php.
Références JText\_(), et JText\sprintf().
JMail::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) |
Définition à la ligne 475 du fichier mail.php.
JMail::setBody | ( | $content | ) |
Set the email body
string | $content | Body of the email |
Définition à la ligne 185 du fichier mail.php.
Références JMailHelper\cleanText().
JMail::setSender | ( | $from | ) |
Set the email sender
mixed | $from | email address and Name of sender array([0] => email Address, [1] => Name) or as a string |
UnexpectedValueException |
Définition à la ligne 129 du fichier mail.php.
Références JLog\add(), JMailHelper\cleanLine(), JText\sprintf(), et JLog\WARNING.
JMail::setSubject | ( | $subject | ) |
Set the email subject
string | $subject | Subject of the email |
Définition à la ligne 169 du fichier mail.php.
Références JMailHelper\cleanLine().
JMail::useSendmail | ( | $sendmail = null | ) |
Use sendmail for sending the email
string | $sendmail | Path to sendmail [optional] |
Définition à la ligne 396 du fichier mail.php.
JMail::useSMTP | ( | $auth = null , |
|
$host = null , |
|||
$user = null , |
|||
$pass = null , |
|||
$secure = null , |
|||
$port = 25 |
|||
) |
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 |
Définition à la ligne 428 du fichier mail.php.
JMail::$CharSet = 'utf-8' |