embedContent() public method
Attach a content as file and return it's CID source. This method should be used when embedding images or other data in a message.
public string embedContent ( $content, array $options = [] )$content string
Attachment file content. $options array
Options for embed file. Valid options are: fileName: name, which should be used to attach file. contentType: attached file MIME type. return string
Attachment CID.