Property | Type | Description | |
---|---|---|---|
$_debug | boolean | null | ||
$_error | string | null | ||
$_log | array | ||
$_priority | integer | null | ||
$_wrapLength | integer | null |
Method | Description | |
---|---|---|
__construct ( string | null $config = null ) | ||
addAttachment ( string $file, string | null $name = null, array $fileInfo = [] ) | Add an attachment from file | |
addBlobAttachment ( string $content, string $filename, string | null $mimeType = null, array $fileInfo = [] ) | Add an attachment as blob | |
addEmbeddedAttachment ( string $file, string | null $name = null, string | null $contentId = null, array $options = [] ) : string | $this | Add an inline attachment from file | |
addEmbeddedBlobAttachment ( string $content, string $filename, string | null $mimeType = null, string | null $contentId = null, array $options = [] ) : string | $this | Add an inline attachment as blob | |
attachments ( mixed | null $attachments = null ) : array | $this | Overwrite to allow mimetype detection | |
getError ( ) : string | Returns the error if existent | |
layout ( string | boolean $layout = false ) | Change the layout | |
priority ( integer | null $priority = null ) : integer | $this | Set/Get priority | |
profile ( mixed $config = null ) : string | null | $this | Ovewrite to allow custom enhancements | |
reset ( ) : void | EmailLib::resetAndSet() | |
send ( string | array | null $message = null ) : boolean | Set the body of the mail as we send it. | |
validates ( ) : boolean | Validate if the email has the required fields necessary to make send() work. | |
wrapLength ( integer | null $length = null ) : integer | $this | Set/Get wrapLength |
Method | Description | |
---|---|---|
_attachFiles ( string | null $boundary = null ) : array | Attach non-embedded files by adding file contents inside boundaries. | |
_attachInlineFiles ( string | null $boundary = null ) : array | Attach inline/embedded files to the message. | |
_getMime ( string $filename, string $default = 'application/octet-stream' ) : string | Try to find mimetype by file extension | |
_getMimeByExtension ( string $ext, string $default = 'application/octet-stream' ) : mixed | ||
_isEmbeddedAttachment ( string $file, string $name ) : boolean | string | Returns if this particular file has already been attached as embedded file with this exact name to prevent the same image to overwrite each other and also to only send this image once. | |
_isEmbeddedBlobAttachment ( string $content, string $name ) : boolean | string | Returns if this particular file has already been attached as embedded file with this exact name to prevent the same image to overwrite each other and also to only send this image once. | |
_logEmail ( string $level = LogLevel::INFO ) : void | ||
_readFile ( string $path ) : string | Read the file contents and return a base64 version of the file contents. | |
_wrap ( string $message, integer $wrapLength = CakeEmail::LINE_LENGTH_MUST ) : array | Fix line length |
public __construct ( string | null $config = null ) | ||
$config | string | null |
public addEmbeddedBlobAttachment ( string $content, string $filename, string | null $mimeType = null, string | null $contentId = null, array $options = [] ) : string | $this | ||
$content | string | Blob data |
$filename | string | to attach it |
$mimeType | string | null | (leave it empty to get mimetype from $filename) |
$contentId | string | null | (optional) |
$options | array | Options |
return | string | $this | $contentId or $this |