Public Member Functions | |
__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) | |
Send () | |
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 () | |
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') | |
InlineImageExists () | |
ClearAddresses () | |
ClearCCs () | |
ClearBCCs () | |
ClearReplyTos () | |
ClearAllRecipients () | |
ClearAttachments () | |
ClearCustomHeaders () | |
IsError () | |
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) | |
__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= '') | |
Send () | |
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 () | |
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') | |
InlineImageExists () | |
ClearAddresses () | |
ClearCCs () | |
ClearBCCs () | |
ClearReplyTos () | |
ClearAllRecipients () | |
ClearAttachments () | |
ClearCustomHeaders () | |
IsError () | |
AddCustomHeader ($custom_header) | |
MsgHTML ($message, $basedir= '') | |
set ($name, $value= '') | |
SecureHeader ($str) | |
Sign ($cert_filename, $key_filename, $key_pass) |
Static Public Member Functions | |
static | ValidateAddress ($address) |
static | RFCDate () |
static | _mime_types ($ext= '') |
static | ValidateAddress ($address) |
static | RFCDate () |
static | _mime_types ($ext= '') |
Public Attributes | |
$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 = '' | |
$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_domain = '' | |
$DKIM_private = '' | |
$action_function = '' | |
$Version = '5.1' | |
const | STOP_MESSAGE = 0 |
const | STOP_CONTINUE = 1 |
const | STOP_CRITICAL = 2 |
const | VERSION = '5.0.0' |
Protected Member Functions | |
SendmailSend ($header, $body) | |
MailSend ($header, $body) | |
SmtpSend ($header, $body) | |
SetError ($msg) | |
doCallback ($isSent, $to, $cc, $bcc, $subject, $body) | |
SendmailSend ($header, $body) | |
MailSend ($header, $body) | |
SmtpSend ($header, $body) | |
SetError ($msg) |
Protected Attributes | |
$language = array() |
Definition at line 43 of file PHPMailer.php.
PHPMailer::__construct | ( | $exceptions = false | ) |
Constructor
boolean | $exceptions | Should we throw external exceptions? |
Definition at line 342 of file PHPMailer.php.
PHPMailer::__construct | ( | $exceptions = false | ) |
Constructor
boolean | $exceptions | Should we throw external exceptions? |
Definition at line 291 of file class.phpmailer.php.
|
static |
Gets the MIME type of the embedded or inline image
string | File extension public |
Definition at line 1915 of file class.phpmailer.php.
|
static |
Gets the MIME type of the embedded or inline image
string | File extension public |
Definition at line 2041 of file PHPMailer.php.
Referenced by MsgHTML().
PHPMailer::AddAddress | ( | $address, | |
$name = '' |
|||
) |
Adds a "To" address.
string | $address | |
string | $name |
Definition at line 356 of file class.phpmailer.php.
PHPMailer::AddAddress | ( | $address, | |
$name = '' |
|||
) |
Adds a "To" address.
string | $address | |
string | $name |
Definition at line 407 of file PHPMailer.php.
PHPMailer::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. |
Definition at line 1218 of file class.phpmailer.php.
References SetError().
PHPMailer::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. |
Definition at line 1344 of file PHPMailer.php.
References SetError().
PHPMailer::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 |
Definition at line 378 of file class.phpmailer.php.
PHPMailer::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 |
Definition at line 429 of file PHPMailer.php.
PHPMailer::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 |
Definition at line 367 of file class.phpmailer.php.
PHPMailer::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 |
Definition at line 418 of file PHPMailer.php.
PHPMailer::AddCustomHeader | ( | $custom_header | ) |
Adds a custom header. public
Definition at line 1868 of file class.phpmailer.php.
PHPMailer::AddCustomHeader | ( | $custom_header | ) |
Adds a custom header. public
Definition at line 1994 of file PHPMailer.php.
PHPMailer::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. |
Definition at line 1657 of file class.phpmailer.php.
References SetError().
PHPMailer::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. |
Definition at line 1783 of file PHPMailer.php.
References SetError().
Referenced by MsgHTML().
PHPMailer::AddrAppend | ( | $type, | |
$addr | |||
) |
Creates recipient headers. public
Definition at line 777 of file class.phpmailer.php.
References AddrFormat().
PHPMailer::AddrAppend | ( | $type, | |
$addr | |||
) |
Creates recipient headers. public
Definition at line 897 of file PHPMailer.php.
References AddrFormat().
Referenced by CreateHeader().
PHPMailer::AddReplyTo | ( | $address, | |
$name = '' |
|||
) |
Adds a "Reply-to" address.
string | $address | |
string | $name |
Definition at line 388 of file class.phpmailer.php.
PHPMailer::AddReplyTo | ( | $address, | |
$name = '' |
|||
) |
Adds a "Reply-to" address.
string | $address | |
string | $name |
Definition at line 439 of file PHPMailer.php.
PHPMailer::AddrFormat | ( | $addr | ) |
Formats an address correctly. public
Definition at line 794 of file class.phpmailer.php.
References EncodeHeader(), and SecureHeader().
PHPMailer::AddrFormat | ( | $addr | ) |
Formats an address correctly. public
Definition at line 914 of file PHPMailer.php.
References EncodeHeader(), and SecureHeader().
Referenced by AddrAppend(), CreateHeader(), and MailSend().
PHPMailer::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. |
Definition at line 1630 of file class.phpmailer.php.
PHPMailer::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. |
Definition at line 1756 of file PHPMailer.php.
PHPMailer::Base64EncodeWrapMB | ( | $str | ) |
Correctly encodes and wraps long multibyte strings for mail headers without breaking lines within a character. Adapted from a function by paravoid at http://uk.php.net/manual/en/function.mb-encode-mimeheader.php public
string | $str | multi-byte text to wrap encode |
Definition at line 1473 of file class.phpmailer.php.
PHPMailer::Base64EncodeWrapMB | ( | $str | ) |
Correctly encodes and wraps long multibyte strings for mail headers without breaking lines within a character. Adapted from a function by paravoid at http://uk.php.net/manual/en/function.mb-encode-mimeheader.php public
string | $str | multi-byte text to wrap encode |
Definition at line 1599 of file PHPMailer.php.
Referenced by EncodeHeader().
PHPMailer::ClearAddresses | ( | ) |
Clears all recipients assigned in the TO array. Returns void.
Definition at line 1706 of file class.phpmailer.php.
PHPMailer::ClearAddresses | ( | ) |
Clears all recipients assigned in the TO array. Returns void.
Definition at line 1832 of file PHPMailer.php.
PHPMailer::ClearAllRecipients | ( | ) |
Clears all recipients assigned in the TO, CC and BCC array. Returns void.
Definition at line 1748 of file class.phpmailer.php.
PHPMailer::ClearAllRecipients | ( | ) |
Clears all recipients assigned in the TO, CC and BCC array. Returns void.
Definition at line 1874 of file PHPMailer.php.
PHPMailer::ClearAttachments | ( | ) |
Clears all previously set filesystem, string, and binary attachments. Returns void.
Definition at line 1760 of file class.phpmailer.php.
PHPMailer::ClearAttachments | ( | ) |
Clears all previously set filesystem, string, and binary attachments. Returns void.
Definition at line 1886 of file PHPMailer.php.
PHPMailer::ClearBCCs | ( | ) |
Clears all recipients assigned in the BCC array. Returns void.
Definition at line 1728 of file class.phpmailer.php.
PHPMailer::ClearBCCs | ( | ) |
Clears all recipients assigned in the BCC array. Returns void.
Definition at line 1854 of file PHPMailer.php.
PHPMailer::ClearCCs | ( | ) |
Clears all recipients assigned in the CC array. Returns void.
Definition at line 1717 of file class.phpmailer.php.
PHPMailer::ClearCCs | ( | ) |
Clears all recipients assigned in the CC array. Returns void.
Definition at line 1843 of file PHPMailer.php.
PHPMailer::ClearCustomHeaders | ( | ) |
Clears all custom headers. Returns void.
Definition at line 1768 of file class.phpmailer.php.
PHPMailer::ClearCustomHeaders | ( | ) |
Clears all custom headers. Returns void.
Definition at line 1894 of file PHPMailer.php.
PHPMailer::ClearReplyTos | ( | ) |
Clears all recipients assigned in the ReplyTo array. Returns void.
Definition at line 1739 of file class.phpmailer.php.
PHPMailer::ClearReplyTos | ( | ) |
Clears all recipients assigned in the ReplyTo array. Returns void.
Definition at line 1865 of file PHPMailer.php.
PHPMailer::CreateBody | ( | ) |
Assembles the message body. Returns an empty string on failure. public
Definition at line 1064 of file class.phpmailer.php.
References EncodeString(), GetMailMIME(), IsError(), and SetWordWrap().
PHPMailer::CreateBody | ( | ) |
Assembles the message body. Returns an empty string on failure. public
Definition at line 1190 of file PHPMailer.php.
References EncodeString(), GetMailMIME(), IsError(), and SetWordWrap().
Referenced by Send().
PHPMailer::CreateHeader | ( | ) |
Assembles message header. public
Definition at line 953 of file class.phpmailer.php.
References AddrAppend(), EncodeHeader(), GetMailMIME(), HeaderLine(), and SecureHeader().
PHPMailer::CreateHeader | ( | ) |
Assembles message header. public
Definition at line 1073 of file PHPMailer.php.
References AddrAppend(), AddrFormat(), EncodeHeader(), GetMailMIME(), HeaderLine(), and SecureHeader().
Referenced by Send().
PHPMailer::DKIM_Add | ( | $headers_line, | |
$subject, | |||
$body | |||
) |
Create the DKIM header, body, as new header
public
string | $headers_line | Header lines |
string | $subject | Subject |
string | $body | Body |
Definition at line 2271 of file PHPMailer.php.
References DKIM_BodyC(), DKIM_HeaderC(), DKIM_QP(), and DKIM_Sign().
Referenced by Send().
PHPMailer::DKIM_BodyC | ( | $body | ) |
Generate DKIM Canonicalization Body
public
string | $body | Message Body |
Definition at line 2251 of file PHPMailer.php.
Referenced by DKIM_Add().
PHPMailer::DKIM_HeaderC | ( | $s | ) |
Generate DKIM Canonicalization Header
public
string | $s | Header |
Definition at line 2232 of file PHPMailer.php.
Referenced by DKIM_Add().
PHPMailer::DKIM_QP | ( | $txt | ) |
Set the private key file and password to sign the message.
public
string | $key_filename | Parameter File Name |
string | $key_pass | Password for private key |
Definition at line 2194 of file PHPMailer.php.
Referenced by DKIM_Add().
PHPMailer::DKIM_Sign | ( | $s | ) |
Generate DKIM signature
public
string | $s | Header |
Definition at line 2214 of file PHPMailer.php.
Referenced by DKIM_Add().
PHPMailer::EncodeHeader | ( | $str, | |
$position = 'text' |
|||
) |
Encode a header string to best (shortest) of Q, B, quoted or none. public
Definition at line 1396 of file class.phpmailer.php.
References Base64EncodeWrapMB(), EncodeQ(), HasMultiBytes(), and WrapText().
PHPMailer::EncodeHeader | ( | $str, | |
$position = 'text' |
|||
) |
Encode a header string to best (shortest) of Q, B, quoted or none. public
Definition at line 1522 of file PHPMailer.php.
References Base64EncodeWrapMB(), EncodeQ(), HasMultiBytes(), and WrapText().
Referenced by AddrFormat(), CreateHeader(), and MailSend().
PHPMailer::EncodeQ | ( | $str, | |
$position = 'text' |
|||
) |
Encode string to q encoding. string $str the text to encode string $position Where the text is going to be used, see the RFC for what that means public string
Definition at line 1595 of file class.phpmailer.php.
PHPMailer::EncodeQ | ( | $str, | |
$position = 'text' |
|||
) |
Encode string to q encoding. string $str the text to encode string $position Where the text is going to be used, see the RFC for what that means public string
Definition at line 1721 of file PHPMailer.php.
Referenced by EncodeHeader().
PHPMailer::EncodeQP | ( | $string, | |
$line_max = 76 , |
|||
$space_conv = false |
|||
) |
Encode string to RFC2045 (6.7) quoted-printable format Uses a PHP5 stream filter to do the encoding about 64x faster than the old version Also results in same content as you started with after decoding
string | $string | the text to encode |
integer | $line_max | Number of chars allowed on a line before wrapping |
boolean | $space_conv | Dummy param for compatibility with existing EncodeQP function |
Definition at line 1566 of file class.phpmailer.php.
References EncodeQPphp().
PHPMailer::EncodeQP | ( | $string, | |
$line_max = 76 , |
|||
$space_conv = false |
|||
) |
Encode string to RFC2045 (6.7) quoted-printable format Uses a PHP5 stream filter to do the encoding about 64x faster than the old version Also results in same content as you started with after decoding
string | $string | the text to encode |
integer | $line_max | Number of chars allowed on a line before wrapping |
boolean | $space_conv | Dummy param for compatibility with existing EncodeQP function |
Definition at line 1692 of file PHPMailer.php.
References EncodeQPphp().
Referenced by EncodeString().
PHPMailer::EncodeQPphp | ( | $input = '' , |
|
$line_max = 76 , |
|||
$space_conv = false |
|||
) |
Encode string to quoted-printable. Only uses standard PHP, slow, but will always work public
string | $string | the text to encode |
integer | $line_max | Number of chars allowed on a line before wrapping |
Definition at line 1513 of file class.phpmailer.php.
PHPMailer::EncodeQPphp | ( | $input = '' , |
|
$line_max = 76 , |
|||
$space_conv = false |
|||
) |
Encode string to quoted-printable. Only uses standard PHP, slow, but will always work public
string | $string | the text to encode |
integer | $line_max | Number of chars allowed on a line before wrapping |
Definition at line 1639 of file PHPMailer.php.
Referenced by EncodeQP().
PHPMailer::EncodeString | ( | $str, | |
$encoding = 'base64' |
|||
) |
Encodes string to requested format. Returns an empty string on failure.
string | $str | The text to encode |
string | $encoding | The encoding to use; one of 'base64', '7bit', '8bit', 'binary', 'quoted-printable' public |
Definition at line 1365 of file class.phpmailer.php.
References EncodeQP(), and SetError().
PHPMailer::EncodeString | ( | $str, | |
$encoding = 'base64' |
|||
) |
Encodes string to requested format. Returns an empty string on failure.
string | $str | The text to encode |
string | $encoding | The encoding to use; one of 'base64', '7bit', '8bit', 'binary', 'quoted-printable' public |
Definition at line 1491 of file PHPMailer.php.
References EncodeQP(), and SetError().
Referenced by CreateBody().
PHPMailer::GetAttachments | ( | ) |
Return the current array of attachments
Definition at line 1256 of file class.phpmailer.php.
PHPMailer::GetAttachments | ( | ) |
Return the current array of attachments
Definition at line 1382 of file PHPMailer.php.
PHPMailer::GetMailMIME | ( | ) |
Returns the message MIME. public
Definition at line 1030 of file class.phpmailer.php.
References HeaderLine(), InlineImageExists(), and TextLine().
PHPMailer::GetMailMIME | ( | ) |
Returns the message MIME. public
Definition at line 1156 of file PHPMailer.php.
References HeaderLine(), InlineImageExists(), and TextLine().
Referenced by CreateBody(), and CreateHeader().
PHPMailer::GetTranslations | ( | ) |
Return the current array of language strings
Definition at line 764 of file class.phpmailer.php.
PHPMailer::GetTranslations | ( | ) |
Return the current array of language strings
Definition at line 884 of file PHPMailer.php.
PHPMailer::HasMultiBytes | ( | $str | ) |
Checks if a string contains multibyte characters. public
string | $str | multi-byte text to wrap encode |
Definition at line 1457 of file class.phpmailer.php.
PHPMailer::HasMultiBytes | ( | $str | ) |
Checks if a string contains multibyte characters. public
string | $str | multi-byte text to wrap encode |
Definition at line 1583 of file PHPMailer.php.
Referenced by EncodeHeader().
PHPMailer::HeaderLine | ( | $name, | |
$value | |||
) |
Returns a formatted header line. public
Definition at line 1191 of file class.phpmailer.php.
PHPMailer::HeaderLine | ( | $name, | |
$value | |||
) |
Returns a formatted header line. public
Definition at line 1317 of file PHPMailer.php.
Referenced by CreateHeader(), and GetMailMIME().
PHPMailer::InlineImageExists | ( | ) |
Returns true if an inline attachment is present. public
Definition at line 1689 of file class.phpmailer.php.
PHPMailer::InlineImageExists | ( | ) |
Returns true if an inline attachment is present. public
Definition at line 1815 of file PHPMailer.php.
Referenced by GetMailMIME().
PHPMailer::IsError | ( | ) |
Returns true if an error occurred. public
Definition at line 1847 of file class.phpmailer.php.
PHPMailer::IsError | ( | ) |
Returns true if an error occurred. public
Definition at line 1973 of file PHPMailer.php.
Referenced by CreateBody().
PHPMailer::IsHTML | ( | $ishtml = true | ) |
Sets message type to HTML.
bool | $ishtml |
Definition at line 300 of file class.phpmailer.php.
PHPMailer::IsHTML | ( | $ishtml = true | ) |
Sets message type to HTML.
bool | $ishtml |
Definition at line 351 of file PHPMailer.php.
Referenced by MsgHTML().
PHPMailer::IsMail | ( | ) |
Sets Mailer to send message using PHP mail() function.
Definition at line 320 of file class.phpmailer.php.
PHPMailer::IsMail | ( | ) |
Sets Mailer to send message using PHP mail() function.
Definition at line 371 of file PHPMailer.php.
PHPMailer::IsQmail | ( | ) |
Sets Mailer to send message using the qmail MTA.
Definition at line 339 of file class.phpmailer.php.
PHPMailer::IsQmail | ( | ) |
Sets Mailer to send message using the qmail MTA.
Definition at line 390 of file PHPMailer.php.
PHPMailer::IsSendmail | ( | ) |
Sets Mailer to send message using the $Sendmail program.
Definition at line 328 of file class.phpmailer.php.
PHPMailer::IsSendmail | ( | ) |
Sets Mailer to send message using the $Sendmail program.
Definition at line 379 of file PHPMailer.php.
PHPMailer::IsSMTP | ( | ) |
Sets Mailer to send message using SMTP.
Definition at line 312 of file class.phpmailer.php.
PHPMailer::IsSMTP | ( | ) |
Sets Mailer to send message using SMTP.
Definition at line 363 of file PHPMailer.php.
|
protected |
Sends mail using the PHP mail() function.
string | $header | The message headers |
string | $body | The message body protected |
Definition at line 559 of file class.phpmailer.php.
References AddrFormat(), EncodeHeader(), and SecureHeader().
|
protected |
Sends mail using the PHP mail() function.
string | $header | The message headers |
string | $body | The message body protected |
Definition at line 644 of file PHPMailer.php.
References AddrFormat(), EncodeHeader(), and SecureHeader().
Referenced by Send().
PHPMailer::MsgHTML | ( | $message, | |
$basedir = '' |
|||
) |
Evaluates the message and returns modifications for inline images and backgrounds public
Definition at line 1877 of file class.phpmailer.php.
References _mime_types(), AddEmbeddedImage(), and IsHTML().
PHPMailer::MsgHTML | ( | $message, | |
$basedir = '' |
|||
) |
Evaluates the message and returns modifications for inline images and backgrounds public
Definition at line 2003 of file PHPMailer.php.
References _mime_types(), AddEmbeddedImage(), and IsHTML().
|
static |
Returns the proper RFC 822 formatted date. public
Definition at line 1798 of file class.phpmailer.php.
|
static |
Returns the proper RFC 822 formatted date. public
Definition at line 1924 of file PHPMailer.php.
PHPMailer::SecureHeader | ( | $str | ) |
Strips newlines to prevent header injection. public
string | $str | String |
Definition at line 2042 of file class.phpmailer.php.
PHPMailer::SecureHeader | ( | $str | ) |
Strips newlines to prevent header injection. public
string | $str | String |
Definition at line 2168 of file PHPMailer.php.
Referenced by AddrFormat(), CreateHeader(), and MailSend().
PHPMailer::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.
Definition at line 486 of file class.phpmailer.php.
References CreateBody(), CreateHeader(), MailSend(), SendmailSend(), SetError(), and SmtpSend().
PHPMailer::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.
Definition at line 545 of file PHPMailer.php.
References CreateBody(), CreateHeader(), DKIM_Add(), MailSend(), SendmailSend(), SetError(), and SmtpSend().
|
protected |
Sends mail using the $Sendmail program.
string | $header | The message headers |
string | $body | The message body protected |
Definition at line 534 of file class.phpmailer.php.
|
protected |
Sends mail using the $Sendmail program.
string | $header | The message headers |
string | $body | The message body protected |
Definition at line 598 of file PHPMailer.php.
Referenced by Send().
PHPMailer::set | ( | $name, | |
$value = '' |
|||
) |
Set (or reset) Class Objects (variables)
Usage Example: $page->set('X-Priority', '3');
public
string | $name | Parameter Name |
mixed | $value | Parameter Value NOTE: will not work with arrays, there are no arrays to set/reset |
Definition at line 2020 of file class.phpmailer.php.
References SetError().
PHPMailer::set | ( | $name, | |
$value = '' |
|||
) |
Set (or reset) Class Objects (variables)
Usage Example: $page->set('X-Priority', '3');
public
string | $name | Parameter Name |
mixed | $value | Parameter Value NOTE: will not work with arrays, there are no arrays to set/reset |
Definition at line 2146 of file PHPMailer.php.
References SetError().
|
protected |
Adds the error message to the error container. protected
Definition at line 1781 of file class.phpmailer.php.
|
protected |
Adds the error message to the error container. protected
Definition at line 1907 of file PHPMailer.php.
Referenced by AddAttachment(), AddEmbeddedImage(), EncodeString(), Send(), set(), and SetFrom().
PHPMailer::SetFrom | ( | $address, | |
$name = '' |
|||
) |
Set the From and FromName properties
string | $address | |
string | $name |
Definition at line 437 of file class.phpmailer.php.
References SetError().
PHPMailer::SetFrom | ( | $address, | |
$name = '' , |
|||
$auto = 1 |
|||
) |
Set the From and FromName properties
string | $address | |
string | $name |
Definition at line 488 of file PHPMailer.php.
References SetError().
PHPMailer::SetLanguage | ( | $langcode = 'en' , |
|
$lang_path = 'language/' |
|||
) |
Sets the language for all class error messages. Returns false if it cannot load the language file. The default language is English.
string | $langcode | ISO 639-1 2-character language code (e.g. Portuguese: "br") |
string | $lang_path | Path to the language file directory public |
Definition at line 730 of file class.phpmailer.php.
PHPMailer::SetLanguage | ( | $langcode = 'en' , |
|
$lang_path = 'language/' |
|||
) |
Sets the language for all class error messages. Returns false if it cannot load the language file. The default language is English.
string | $langcode | ISO 639-1 2-character language code (e.g. Portuguese: "br") |
string | $lang_path | Path to the language file directory public |
Definition at line 850 of file PHPMailer.php.
PHPMailer::SetWordWrap | ( | ) |
Set the body wrapping. public
Definition at line 932 of file class.phpmailer.php.
References WrapText().
PHPMailer::SetWordWrap | ( | ) |
Set the body wrapping. public
Definition at line 1052 of file PHPMailer.php.
References WrapText().
Referenced by CreateBody().
PHPMailer::Sign | ( | $cert_filename, | |
$key_filename, | |||
$key_pass | |||
) |
Set the private key file and password to sign the message.
public
string | $key_filename | Parameter File Name |
string | $key_pass | Password for private key |
Definition at line 2055 of file class.phpmailer.php.
PHPMailer::Sign | ( | $cert_filename, | |
$key_filename, | |||
$key_pass | |||
) |
Set the private key file and password to sign the message.
public
string | $key_filename | Parameter File Name |
string | $key_pass | Password for private key |
Definition at line 2181 of file PHPMailer.php.
PHPMailer::SmtpClose | ( | ) |
Closes the active SMTP session if one exists.
Definition at line 714 of file class.phpmailer.php.
PHPMailer::SmtpClose | ( | ) |
Closes the active SMTP session if one exists.
Definition at line 834 of file PHPMailer.php.
PHPMailer::SmtpConnect | ( | ) |
Initiates a connection to an SMTP server. Returns false if the operation failed. SMTP public
Definition at line 652 of file class.phpmailer.php.
PHPMailer::SmtpConnect | ( | ) |
Initiates a connection to an SMTP server. Returns false if the operation failed. SMTP public
Definition at line 772 of file PHPMailer.php.
Referenced by SmtpSend().
|
protected |
Sends mail via SMTP using PhpSMTP Returns false if there is a bad MAIL FROM, RCPT, or DATA input.
string | $header | The message headers |
string | $body | The message body SMTP protected |
Definition at line 604 of file class.phpmailer.php.
References SmtpConnect().
|
protected |
Sends mail via SMTP using PhpSMTP Returns false if there is a bad MAIL FROM, RCPT, or DATA input.
string | $header | The message headers |
string | $body | The message body SMTP protected |
Definition at line 701 of file PHPMailer.php.
References SmtpConnect().
Referenced by Send().
PHPMailer::TextLine | ( | $value | ) |
Returns a formatted mail line. public
Definition at line 1200 of file class.phpmailer.php.
PHPMailer::TextLine | ( | $value | ) |
Returns a formatted mail line. public
Definition at line 1326 of file PHPMailer.php.
Referenced by GetMailMIME().
PHPMailer::UTF8CharBoundary | ( | $encodedText, | |
$maxLength | |||
) |
Finds last character boundary prior to maxLength in a utf-8 quoted (printable) encoded string. Original written by Colin Brown. public
string | $encodedText | utf-8 QP text |
int | $maxLength | find last character boundary prior to this length |
Definition at line 894 of file class.phpmailer.php.
PHPMailer::UTF8CharBoundary | ( | $encodedText, | |
$maxLength | |||
) |
Finds last character boundary prior to maxLength in a utf-8 quoted (printable) encoded string. Original written by Colin Brown. public
string | $encodedText | utf-8 QP text |
int | $maxLength | find last character boundary prior to this length |
Definition at line 1014 of file PHPMailer.php.
Referenced by WrapText().
|
static |
Check that a string looks roughly like an email address should Static so it can be used without instantiation Tries to use PHP built-in validator in the filter extension (from PHP 5.2), falls back to a reasonably competent regex validator Conforms approximately to RFC2822 Original pattern found here string $address The email address to check boolean public
Definition at line 464 of file class.phpmailer.php.
|
static |
Check that a string looks roughly like an email address should Static so it can be used without instantiation Tries to use PHP built-in validator in the filter extension (from PHP 5.2), falls back to a reasonably competent regex validator Conforms approximately to RFC2822 Original pattern found here string $address The email address to check boolean public
Definition at line 523 of file PHPMailer.php.
PHPMailer::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.
string | $message | The message to wrap |
integer | $length | The line length to wrap to |
boolean | $qp_mode | Whether to run in Quoted-Printable mode public |
Definition at line 812 of file class.phpmailer.php.
References UTF8CharBoundary().
PHPMailer::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.
string | $message | The message to wrap |
integer | $length | The line length to wrap to |
boolean | $qp_mode | Whether to run in Quoted-Printable mode public |
Definition at line 932 of file PHPMailer.php.
References UTF8CharBoundary().
Referenced by EncodeHeader(), and SetWordWrap().