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 = '']]]] )
Parameters
-
$string
- The attachment binary data.
-
$cid
- Content ID of the attachment; Use this to reference
-
$name
-
$encoding
- File encoding (see $Encoding).
-
$type
- MIME type.
Returns
- bool
- True on successfully adding an attachment