Adds an embedded attachment. This can include images, sounds, and just about any other document. Make sure to set the $type to an image type. For JPEG images use "image/jpeg" and for GIF images use "image/gif".
Signature
public function AddEmbeddedImage(string
$path,
string
$cid,
[string
$name = '',
[string
$encoding = 'base64',
[string
$type = 'application/octet-stream']]] )
Parameters
$path
—
string
Path to the attachment.
$cid
—
string
Content ID of the attachment. Use this to identify the Id for accessing the image in an HTML form.