yii\mail\MessageInterface::embed PHP Méthode

embed() public méthode

This method should be used when embedding images or other data in a message.
public embed ( string $fileName, array $options = [] ) : string
$fileName string file name.
$options array options for embed file. Valid options are: - fileName: name, which should be used to attach file. - contentType: attached file MIME type.
Résultat string attachment CID.
    public function embed($fileName, array $options = []);