Helper to send email
Definition at line 10 of file email.class.php.
◆ __get()
◆ __set()
◆ addr()
addr |
( |
|
$addr, |
|
|
|
$type, |
|
|
|
$add = false |
|
) |
| |
Add an address
- Parameters
-
string | array | $addr | Email address |
string | $type | Type (to, cc or bcc) |
bool | $add | True to add instead of replacing |
Definition at line 60 of file email.class.php.
◆ afterInit()
◆ attach()
Attach a file
- Parameters
-
string | array | $prm | File path if string or array with key:
- string file (required) File path name
- string name File name
- string type File Mime type
|
- Returns
- bool True if added (file exists)
Definition at line 80 of file email.class.php.
◆ bcc()
bcc |
( |
|
$addr, |
|
|
|
$add = false |
|
) |
| |
Add a bcc address
- Parameters
-
string | array | $addr | Email address |
bool | $add | True to add instead of replacing |
Definition at line 49 of file email.class.php.
◆ beforeInit()
Call just before the configuration initialisation
Definition at line 35 of file object.class.php.
◆ cc()
cc |
( |
|
$addr, |
|
|
|
$add = false |
|
) |
| |
Add a cc address
- Parameters
-
string | array | $addr | Email address |
bool | $add | True to add instead of replacing |
Definition at line 39 of file email.class.php.
◆ encode()
encode |
( |
|
$val, |
|
|
|
$encoding = null |
|
) |
| |
|
protected |
Encode a content regarding the encoding config
- Parameters
-
string | $val | |
null | string | $encoding | Force encoding type to use |
- Returns
- string
Definition at line 405 of file email.class.php.
◆ encodeHeader()
Encode header
- Parameters
-
string | $val | |
string | $type | Type of content (text or phrase) |
- Returns
- string
Definition at line 614 of file email.class.php.
◆ fixEOL()
Changes every end of line from CR or LF to CRLF
- Returns
- string
Definition at line 508 of file email.class.php.
◆ formatAddr()
Format address
- Parameters
-
string | array | $addr | email or array with email and name |
- Returns
- string
Definition at line 597 of file email.class.php.
◆ getAttr()
Get an attribute
- Parameters
-
string | $name | Attribute name |
- Returns
- mixed|null The attribute or null if not set
Definition at line 48 of file object.class.php.
◆ getBody()
getBody |
( |
& |
$headers = null | ) |
|
|
protected |
Get the body content
- Parameters
-
string | null | $headers | Header to edit or null to add the header in the email |
- Returns
- string
Definition at line 297 of file email.class.php.
◆ getBoundary()
◆ getCfg()
Get the configuration object
- Returns
- config
Definition at line 67 of file object.class.php.
◆ headerAddr()
Enter description here...
- Parameters
-
unknown_type | $name | |
array | $val | |
- Returns
- unknown
Definition at line 583 of file email.class.php.
◆ headerLine()
headerLine |
( |
|
$name, |
|
|
|
$val |
|
) |
| |
|
protected |
Create the string to add in the header
- Parameters
-
string | $name | Header name |
mixed | $val | Header value |
- Returns
- string
Definition at line 562 of file email.class.php.
◆ parseHtml()
Render the HTML setting if it is set to used a tpl
Definition at line 643 of file email.class.php.
◆ quotePrintable()
Quote a string to be included in a "printable" email part
- Parameters
-
string | $str | The string to quote |
- Returns
- string
Definition at line 220 of file email.class.php.
◆ send()
Send the email
- Returns
- bool True if successful
Definition at line 104 of file email.class.php.
◆ setAttr()
setAttr |
( |
|
$name, |
|
|
|
$value |
|
) |
| |
|
inherited |
Set an attribute
- Parameters
-
string | $name | Attribute name |
mixed | $value | Attribute value |
Definition at line 58 of file object.class.php.
◆ textLine()
Create a text line with a crlf
- Parameters
-
- Returns
- string
Definition at line 572 of file email.class.php.
◆ to()
to |
( |
|
$addr, |
|
|
|
$add = false |
|
) |
| |
Add a to address
- Parameters
-
string | array | $addr | Email address |
bool | $add | True to add instead of replacing |
Definition at line 29 of file email.class.php.
◆ UTF8CharBoundary()
UTF8CharBoundary |
( |
|
$encodedText, |
|
|
|
$maxLength |
|
) |
| |
Finds last character boundary prior to maxLength in a utf-8 quoted (printable) encoded string
- Parameters
-
string | $encodedText | Utf-8 QP text |
int | $maxLength | Find last character boundary prior to this length |
- Returns
- int
Definition at line 523 of file email.class.php.
◆ wrapText()
wrapText |
( |
|
$message, |
|
|
|
$qp_mode = false |
|
) |
| |
Wraps message for use with mailers that do not automatically perform wrapping and for quoted-printable.
- Parameters
-
string | $message | The message to wrap |
boolean | $qp_mode | Whether to run in Quoted-Printable mode |
- Returns
- string
Definition at line 428 of file email.class.php.
◆ $attachment
◆ $cfg
The documentation for this class was generated from the following file: