addInlineImage() public method

public addInlineImage ( string $inlineImagePath, string | null $inlineImageName = null ) : boolean
$inlineImagePath string
$inlineImageName string | null
return boolean
コード例 #1
0
ファイル: Message.php プロジェクト: bogardo/mailgun
 /**
  * Embed a file in the message and get the CID.
  *
  * @param string $path
  * @param string $name
  *
  * @return string
  */
 public function embed($path, $name = null)
 {
     $name = $name ?: basename($path);
     $this->messageBuilder->addInlineImage("@{$path}", $name);
     return "cid:{$name}";
 }