Joomla CMS
2.5.24 (avec JPlatform 11.4 inclus)
Documentation des API du CMS Joomla en version 2.5 et du framework Joomla Platform intégré
|
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= '') | |
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) | |
IsHTML ($ishtml=true) | |
IsSMTP () | |
IsMail () | |
IsSendmail () | |
IsQmail () | |
AddAddress ($address, $name= '') | |
AddCC ($address, $name= '') | |
AddBCC ($address, $name= '') | |
AddReplyTo ($address, $name= '') | |
SetFrom ($address, $name= '', $auto=1) | |
SmtpConnect () | |
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= 'application/octet-stream') | |
GetAttachments () | |
EncodeString ($str, $encoding= 'base64') | |
EncodeHeader ($str, $position= 'text') | |
HasMultiBytes ($str) | |
Base64EncodeWrapMB ($str) | |
EncodeQPphp ($input= '', $line_max=76, $space_conv=false) | |
EncodeQP ($string, $line_max=76, $space_conv=false) | |
EncodeQ ($str, $position= 'text') | |
AddStringAttachment ($string, $filename, $encoding= 'base64', $type= 'application/octet-stream') | |
AddEmbeddedImage ($path, $cid, $name= '', $encoding= 'base64', $type= 'application/octet-stream') | |
AddStringEmbeddedImage ($string, $cid, $filename= '', $encoding= 'base64', $type= 'application/octet-stream') | |
InlineImageExists () | |
AttachmentExists () | |
AlternativeExists () | |
ClearAddresses () | |
ClearCCs () | |
ClearBCCs () | |
ClearReplyTos () | |
ClearAllRecipients () | |
ClearAttachments () | |
ClearCustomHeaders () | |
IsError () | |
FixEOL ($str) | |
AddCustomHeader ($custom_header) | |
MsgHTML ($message, $basedir= '') | |
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= '') |
Attributs publics | |
$CharSet = 'utf-8' | |
Attributs publics inherited from PHPMailer | |
$Priority = 3 | |
$ContentType = 'text/plain' | |
$Encoding = '8bit' | |
$ErrorInfo = '' | |
$From = 'root@localhost' | |
$FromName = 'Root User' | |
$Sender = '' | |
$Subject = '' | |
$Body = '' | |
$AltBody = '' | |
$WordWrap = 0 | |
$Mailer = 'mail' | |
$Sendmail = '/usr/sbin/sendmail' | |
$PluginDir = '' | |
$ConfirmReadingTo = '' | |
$Hostname = '' | |
$MessageID = '' | |
$Host = 'localhost' | |
$Port = 25 | |
$Helo = '' | |
$SMTPSecure = '' | |
$SMTPAuth = false | |
$Username = '' | |
$Password = '' | |
$Timeout = 10 | |
$SMTPDebug = false | |
$SMTPKeepAlive = false | |
$SingleTo = false | |
$SingleToArray = array() | |
$LE = "\n" | |
$DKIM_selector = 'phpmailer' | |
$DKIM_identity = '' | |
$DKIM_passphrase = '' | |
$DKIM_domain = '' | |
$DKIM_private = '' | |
$action_function = '' | |
$Version = '5.2.1' | |
$XMailer = '' | |
const | STOP_MESSAGE = 0 |
const | STOP_CONTINUE = 1 |
const | STOP_CRITICAL = 2 |
Attributs protégés statiques | |
static | $instances = array() |
Additional Inherited Members | |
Fonctions membres protégées inherited from PHPMailer | |
AddAnAddress ($kind, $address, $name= '') | |
PreSend () | |
PostSend () | |
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) | |
Attributs protégés inherited from PHPMailer | |
$MIMEBody = '' | |
$MIMEHeader = '' | |
$SentMIMEMessage = '' | |
$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 | ( | ) |
Constructor
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 |
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)] |
Références JMailHelper\cleanLine().
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)] |
Références JMailHelper\cleanLine().
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)] |
Références JMailHelper\cleanLine().
JMail::addReplyTo | ( | $replyto, | |
$name = '' |
|||
) |
Add Reply to email address(es) to the email
array | $replyto | Either an array or multi-array of form array([0] => email Address [1] => Name) |
mixed | $name | Either an array or single string |
Références JMailHelper\cleanLine().
|
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] |
Références $id.
Référencé par JFactory\createMailer().
JMail::Send | ( | ) |
Send the mail
Réimplémentée à partir de PHPMailer.
Références JText\_(), 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 |
Références $author, $message, $title, $type, $url, 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) |
JMail::setBody | ( | $content | ) |
Set the email body
string | $content | Body of the email |
Références JMailHelper\cleanText().
JMail::setSender | ( | $from | ) |
Set the email sender
array | $from | email address and Name of sender array([0] => email Address [1] => Name) |
Références JMailHelper\cleanLine(), elseif, JError\raiseWarning(), et JText\sprintf().
JMail::setSubject | ( | $subject | ) |
Set the email subject
string | $subject | Subject of the email |
Références JMailHelper\cleanLine().
JMail::useSendmail | ( | $sendmail = null | ) |
Use sendmail for sending the email
string | $sendmail | Path to sendmail [optional] |
JMail::useSMTP | ( | $auth = null , |
|
$host = null , |
|||
$user = null , |
|||
$pass = null , |
|||
$secure = null , |
|||
$port = 25 |
|||
) |
JMail::$CharSet = 'utf-8' |
Réimplémentée à partir de PHPMailer.
|
staticprotected |