/** * @param string $file * @param string $content * @param string $contentType * * @return string content id */ public function addEmbeddedFile($file, $content = null, $contentType = null) { try { $mailPart = $this->message->addEmbeddedFile($file, $content, $contentType); return $this->getIdFromMailPart($mailPart); } catch (\Exception $e) { throw new MailerException($e->getMessage()); } }