PHPMailer::AddEmbeddedImage
Add an embedded attachment from a file.
This can include images, sounds, and just about any other document type.
Signature
public function AddEmbeddedImage(string
$path,
[string
$cid = '',
[string
$name = '',
[string
$encoding = 'base64',
[string
$type = '']]]] )
Parameters
-
$path
- Path to the attachment.
-
$cid
- Content ID of the attachment; Use this to reference
-
$name
- Overrides the attachment name.
-
$encoding
- File encoding (see $Encoding).
-
$type
- File MIME type.
Returns
- bool
- True on successfully adding an attachment