PHPMailer::addStringEmbeddedImage
Add an embedded stringified attachment.
This can include images, sounds, and just about any other document type. Be sure to set the $type to an image type for images: JPEG images use 'image/jpeg', GIF uses 'image/gif', PNG uses 'image/png'.
Signature
public function addStringEmbeddedImage(string
$string,
string
$cid,
[string
$name = '',
[string
$encoding = 'base64',
[string
$type = '',
[string
$disposition = 'inline']]]] )
Parameters
$string
— string
The attachment binary data.$cid
— string
Content ID of the attachment; Use this to reference
the content when using an embedded image in HTML.$name
— string$encoding
— string
File encoding (see $Encoding).$type
— string
MIME type.$disposition
— string
Disposition to use
Returns
- boolean
- True on successfully adding an attachment
Violations
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
3105 | 128 | warning | Line exceeds 120 characters; contains 128 characters |