$Priority
$Priority : integer
Email priority (1 = High, 3 = Normal, 5 = low).
SetLanguage(string $lang_type = 'en', string $lang_path = 'language/') : boolean
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 |
UTF8CharBoundary(string $encodedText, integer $maxLength) : integer
Finds last character boundary prior to maxLength in a utf-8 quoted (printable) encoded string.
Original written by Colin Brown.
| string | $encodedText | utf-8 QP text |
| integer | $maxLength | find last character boundary prior to this length |
AddAttachment(string $path, string $name = '', string $encoding = 'base64', string $type = 'application/octet-stream') : boolean
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. |
Base64EncodeWrapMB(string $str) : string
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
| string | $str | multi-byte text to wrap encode |
AddStringAttachment(string $string, string $filename, string $encoding = 'base64', string $type = 'application/octet-stream') : void
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. |
AddEmbeddedImage(string $path, string $cid, string $name = '', string $encoding = 'base64', string $type = 'application/octet-stream') : boolean
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. |