MIOLO25
|
Membros públicos | |
isHTML ($bool) | |
isSMTP () | |
isMail () | |
isSendmail () | |
isQmail () | |
addAddress ($address, $name="") | |
addCC ($address, $name="") | |
addBCC ($address, $name="") | |
addReplyTo ($address, $name="") | |
send () | |
sendmailSend ($header, $body) | |
mailSend ($header, $body) | |
smtpSend ($header, $body) | |
smtpConnect () | |
smtpClose () | |
setLanguage ($lang_type, $lang_path="") | |
addrAppend ($type, $addr) | |
addrFormat ($addr) | |
wrapText ($message, $length, $qp_mode=false) | |
setWordWrap () | |
createHeader () | |
createBody () | |
getBoundary ($boundary, $charSet, $contentType, $encoding) | |
endBoundary ($boundary) | |
setMessageType () | |
headerLine ($name, $value) | |
textLine ($value) | |
addAttachment ($path, $name="", $encoding="base64", $type="application/octet-stream") | |
attachAll () | |
encodeFile ($path, $encoding="base64") | |
encodeString ($str, $encoding="base64") | |
encodeHeader ($str, $position='text') | |
encodeQP ($str) | |
encodeQ ($str, $position="text") | |
addStringAttachment ($string, $filename, $encoding="base64", $type="application/octet-stream") | |
addEmbeddedImage ($path, $cid, $name="", $encoding="base64", $type="application/octet-stream") | |
inlineImageExists () | |
clearAddresses () | |
clearCCs () | |
clearBCCs () | |
clearReplyTos () | |
clearAllRecipients () | |
clearAttachments () | |
clearCustomHeaders () | |
setError ($msg) | |
RFCDate () | |
received () | |
serverVar ($varName) | |
serverHostname () | |
lang ($key) | |
isError () | |
fixEOL ($str) | |
addCustomHeader ($custom_header) | |
Campos de Dados | |
$priority = 3 | |
$charSet = "iso-8859-1" | |
$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 = "" | |
$version = "1.71" | |
$confirmReadingTo = "" | |
$hostname = "" | |
$host = "localhost" | |
$port = 25 | |
$helo = "" | |
$SMTPAuth = false | |
$username = "" | |
$password = "" | |
$timeout = 10 | |
$SMTPDebug = false | |
$SMTPKeepAlive = false | |
$smtp = NULL | |
$to | |
$cc | |
$bcc | |
$replyTo | |
$attachment | |
$customHeader | |
$message_type = "" | |
$boundary | |
$language | |
$error_count = 0 | |
$LE = "\n" | |
addAddress | ( | $address, | |
$name = "" ) |
Adds a "To" address.
string | $address | |
string | $name |
addAttachment | ( | $path, | |
$name = "", | |||
$encoding = "base64", | |||
$type = "application/octet-stream" ) |
Adds an attachment from a path on the filesystem. Returns false if the file could not be found or accessed.
string | $path | Path to the attachment. |
string | $name | Overrides the attachment name. |
string | $encoding | File encoding (see $encoding). |
string | $type | File extension (MIME) type. |
addBCC | ( | $address, | |
$name = "" ) |
Adds a "Bcc" address. Note: this function works with the SMTP mailer on win32, not with the "mail" mailer.
string | $address | |
string | $name |
addCC | ( | $address, | |
$name = "" ) |
Adds a "Cc" address. Note: this function works with the SMTP mailer on win32, not with the "mail" mailer.
string | $address | |
string | $name |
addCustomHeader | ( | $custom_header | ) |
Adds a custom header.
addEmbeddedImage | ( | $path, | |
$cid, | |||
$name = "", | |||
$encoding = "base64", | |||
$type = "application/octet-stream" ) |
Adds an embedded attachment. This can include images, sounds, and just about any other document. Make sure to set the $type to an image type. For JPEG images use "image/jpeg" and for GIF images use "image/gif".
string | $path | Path to the attachment. |
string | $cid | Content ID of the attachment. Use this to identify the Id for accessing the image in an HTML form. |
string | $name | Overrides the attachment name. |
string | $encoding | File encoding (see $encoding). |
string | $type | File extension (MIME) type. |
addrAppend | ( | $type, | |
$addr ) |
Creates recipient headers.
@access private
addReplyTo | ( | $address, | |
$name = "" ) |
Adds a "Reply-to" address.
string | $address | |
string | $name |
addrFormat | ( | $addr | ) |
Formats an address correctly. @access private
addStringAttachment | ( | $string, | |
$filename, | |||
$encoding = "base64", | |||
$type = "application/octet-stream" ) |
Adds a string or binary attachment (non-filesystem) to the list. This method can be used to attach ascii or binary data, such as a BLOB record from a database.
string | $string | String attachment data. |
string | $filename | Name of the attachment. |
string | $encoding | File encoding (see $encoding). |
string | $type | File extension (MIME) type. |
attachAll | ( | ) |
Attaches all fs, string, and binary attachments to the message. Returns an empty string on failure. @access private
clearAddresses | ( | ) |
Clears all recipients assigned in the TO array. Returns void.
clearAllRecipients | ( | ) |
Clears all recipients assigned in the TO, CC and BCC array. Returns void.
clearAttachments | ( | ) |
Clears all previously set filesystem, string, and binary attachments. Returns void.
clearBCCs | ( | ) |
Clears all recipients assigned in the BCC array. Returns void.
clearCCs | ( | ) |
Clears all recipients assigned in the CC array. Returns void.
clearCustomHeaders | ( | ) |
Clears all custom headers. Returns void.
clearReplyTos | ( | ) |
Clears all recipients assigned in the ReplyTo array. Returns void.
createBody | ( | ) |
Assembles the message body. Returns an empty string on failure. @access private
createHeader | ( | ) |
Assembles message header.
@access private
encodeFile | ( | $path, | |
$encoding = "base64" ) |
Encodes attachment in requested format. Returns an empty string on failure. @access private
encodeHeader | ( | $str, | |
$position = 'text' ) |
Encode a header string to best of Q, B, quoted or none.
@access private
encodeQ | ( | $str, | |
$position = "text" ) |
Encode string to q encoding.
@access private
encodeQP | ( | $str | ) |
Encode string to quoted-printable.
@access private
encodeString | ( | $str, | |
$encoding = "base64" ) |
Encodes string to requested format. Returns an empty string on failure. @access private
endBoundary | ( | $boundary | ) |
Returns the end of a message boundary. @access private
fixEOL | ( | $str | ) |
Changes every end of line from CR or LF to CRLF.
@access private
getBoundary | ( | $boundary, | |
$charSet, | |||
$contentType, | |||
$encoding ) |
Returns the start of a message boundary. @access private
headerLine | ( | $name, | |
$value ) |
Returns a formatted header line. @access private
inlineImageExists | ( | ) |
Returns true if an inline attachment is present. @access private
isError | ( | ) |
Returns true if an error occurred.
isHTML | ( | $bool | ) |
#- Sets message type to HTML.
bool | $bool |
isMail | ( | ) |
Sets Mailer to send message using PHP mail() function.
isQmail | ( | ) |
Sets Mailer to send message using the qmail MTA.
isSendmail | ( | ) |
Sets Mailer to send message using the $sendmail program.
isSMTP | ( | ) |
Sets Mailer to send message using SMTP.
lang | ( | $key | ) |
Returns a message in the appropriate language. @access private
mailSend | ( | $header, | |
$body ) |
Sends mail using the PHP mail() function.
@access private
received | ( | ) |
Returns Received header for message tracing. @access private
RFCDate | ( | ) |
Returns the proper RFC 822 formatted date. @access private
send | ( | ) |
Creates message and assigns Mailer. If the message is not sent successfully then it returns false. Use the ErrorInfo variable to view description of the error.
sendmailSend | ( | $header, | |
$body ) |
Sends mail using the $sendmail program.
@access private
serverHostname | ( | ) |
Returns the server hostname or 'localhost.localdomain' if unknown. @access private
serverVar | ( | $varName | ) |
Returns the appropriate server variable. Should work with both PHP 4.1.0+ as well as older versions. Returns an empty string if nothing is found. @access private
setError | ( | $msg | ) |
Adds the error message to the error container. Returns void. @access private
setLanguage | ( | $lang_type, | |
$lang_path = "" ) |
Sets the language for all class error messages. Returns false if it cannot load the language file. The default language type is English.
string | $lang_type | Type of language (e.g. Portuguese: "br") |
string | $lang_path | Path to the language file directory @access public |
setMessageType | ( | ) |
Sets the message type. @access private
setWordWrap | ( | ) |
Set the body wrapping. @access private
smtpClose | ( | ) |
Closes the active SMTP session if one exists.
smtpConnect | ( | ) |
Initiates a connection to an SMTP server. Returns false if the operation failed. @access private
smtpSend | ( | $header, | |
$body ) |
Sends mail via SMTP using PhpSMTP (Author: Chris Ryan). Returns bool. Returns false if there is a bad MAIL FROM, RCPT, or DATA input. @access private
textLine | ( | $value | ) |
Returns a formatted mail line. @access private
wrapText | ( | $message, | |
$length, | |||
$qp_mode = false ) |
Wraps message for use with mailers that do not automatically perform wrapping and for quoted-printable. Original written by philippe.
@access private
$altBody = "" |
$attachment |
$bcc |
$body = "" |
$boundary |
$cc |
$charSet = "iso-8859-1" |
$confirmReadingTo = "" |
$contentType = "text/plain" |
$customHeader |
$encoding = "8bit" |
$error_count = 0 |
$errorInfo = "" |
$from = "root@localhost" |
$fromName = "Root User" |
$helo = "" |
$host = "localhost" |
$hostname = "" |
$language |
$LE = "\n" |
$mailer = "mail" |
$message_type = "" |
$password = "" |
$pluginDir = "" |
$port = 25 |
$priority = 3 |
$replyTo |
$sender = "" |
$sendmail = "/usr/sbin/sendmail" |
$smtp = NULL |
#+ @access private
$SMTPAuth = false |
$SMTPDebug = false |
$SMTPKeepAlive = false |
$subject = "" |
$timeout = 10 |
$to |
$username = "" |
$version = "1.71" |
$wordWrap = 0 |