| Fully Qualified Name: | CodeIgniter\Test\Mock\MockEmail |
| Extends: |
| Name | Description | Defined By |
|---|---|---|
| __construct() | Constructor - Sets Email Preferences | |
| __destruct() | Destructor | |
| attach() | Assign file attachments | |
| batchBCCSend() | Batch Bcc Send. Sends groups of BCCs in batches | |
| cleanEmail() |
Clean Extended Email Address: Joe Smith |
|
| clear() | Initialize the Email Data | |
| initialize() | Initialize preferences | |
| isValidEmail() | Email Validation | |
| printDebugger() | Get Debug Message | |
| send() | MockEmail | |
| setAltMessage() | Set Multipart Value | |
| setAttachmentCID() | Set and return attachment Content-ID | |
| setBCC() | Set BCC | |
| setCC() | Set CC | |
| setCRLF() | Set CRLF | |
| setFrom() | Set FROM | |
| setHeader() | Add a Header Item | |
| setMailType() | Set Mailtype | |
| setMessage() | Set Body | |
| setNewline() | Set Newline Character | |
| setPriority() | Set Priority | |
| setProtocol() | Set Protocol | |
| setReplyTo() | Set Reply-to | |
| setSubject() | Set Email Subject | |
| setTo() | Set Recipients | |
| setWordWrap() | Set Wordwrap | |
| validateEmail() | Validate Email Address | |
| wordWrap() | Word Wrap |
Constructor - Sets Email Preferences
The constructor can be passed an array of config values
| Parameter Name | Type | Description |
|---|---|---|
| $config | array|null |
Returns:
Destructor
Returns:
Assign file attachments
| Parameter Name | Type | Description |
|---|---|---|
| $file | string | Can |
| $disposition | string | 'attachment' |
| $newname | string|null | |
| $mime | string |
Returns: \Email
Batch Bcc Send. Sends groups of BCCs in batches
Returns:
Clean Extended Email Address: Joe Smith
| Parameter Name | Type | Description |
|---|---|---|
| string |
Returns: string
Initialize the Email Data
| Parameter Name | Type | Description |
|---|---|---|
| $clearAttachments | bool |
Returns: \Email
Initialize preferences
| Parameter Name | Type | Description |
|---|---|---|
| $config | array|\Config\Email |
Returns: \Email
Email Validation
| Parameter Name | Type | Description |
|---|---|---|
| string |
Returns: bool
Get Debug Message
| Parameter Name | Type | Description |
|---|---|---|
| $include | array | List |
Returns: string
| Parameter Name | Type | Description |
|---|---|---|
| $autoClear |
Returns: void
Set Multipart Value
| Parameter Name | Type | Description |
|---|---|---|
| $str | string |
Returns: \Email
Set and return attachment Content-ID
Useful for attached inline pictures
| Parameter Name | Type | Description |
|---|---|---|
| $filename | string |
Returns: string
Set BCC
| Parameter Name | Type | Description |
|---|---|---|
| $bcc | string | |
| $limit | string |
Returns: \Email
Set CC
| Parameter Name | Type | Description |
|---|---|---|
| $cc | string |
Returns: \Email
Set CRLF
| Parameter Name | Type | Description |
|---|---|---|
| $CRLF | string |
Returns: \Email
Set FROM
| Parameter Name | Type | Description |
|---|---|---|
| $from | string | |
| $name | string | |
| $returnPath | string|null | Return-Path |
Returns: \Email
Add a Header Item
| Parameter Name | Type | Description |
|---|---|---|
| $header | string | |
| $value | string |
Returns: \Email
Set Mailtype
| Parameter Name | Type | Description |
|---|---|---|
| $type | string |
Returns: \Email
Set Body
| Parameter Name | Type | Description |
|---|---|---|
| $body | string |
Returns: \Email
Set Newline Character
| Parameter Name | Type | Description |
|---|---|---|
| $newline | string |
Returns: \Email
Set Priority
| Parameter Name | Type | Description |
|---|---|---|
| $n | int |
Returns: \Email
Set Protocol
| Parameter Name | Type | Description |
|---|---|---|
| $protocol | string |
Returns: \Email
Set Reply-to
| Parameter Name | Type | Description |
|---|---|---|
| $replyto | string | |
| $name | string |
Returns: \Email
Set Email Subject
| Parameter Name | Type | Description |
|---|---|---|
| $subject | string |
Returns: \Email
Set Recipients
| Parameter Name | Type | Description |
|---|---|---|
| $to | string|array |
Returns: \Email
Set Wordwrap
| Parameter Name | Type | Description |
|---|---|---|
| $wordWrap | bool |
Returns: \Email
Validate Email Address
| Parameter Name | Type | Description |
|---|---|---|
| string|array |
Returns: bool
Word Wrap
| Parameter Name | Type | Description |
|---|---|---|
| $str | string | |
| $charlim | int|null | Line-length |
Returns: string