Добрый не получается вложить в письмо массив фотографий есть такой массив с путями норма! когда добавляю одну фотку -все идет Код (PHP): array(2) { [0]=> string(59) "images/Снимок-экрана-2016-06-07-в-12.09.57.png" [1]=> string(59) "images/Снимок-экрана-2016-06-07-в-13.38.42.png" } пробую в лоб Код (PHP): $mailer->AddEmbeddedImage($upload); не выходит что не так?
смотри описание функции в libraries\vendor\phpmailer\phpmailer\class.phpmailer.php Код (PHP): foreach ($array as $key=>$val) { /** * Add an embedded (inline) attachment from a file. * This can include images, sounds, and just about any other document type. * These differ from 'regular' attachments in that they are intended to be * displayed inline with the message, not just attached for download. * This is used in HTML messages that embed the images * the HTML refers to using the $cid value. * @param string $path Path to the attachment. * @param string $cid Content ID of the attachment; Use this to reference * the content when using an embedded image in HTML. * @param string $name Overrides the attachment name. * @param string $encoding File encoding (see $Encoding). * @param string $type File MIME type. * @param string $disposition Disposition to use * @return boolean True on successfully adding an attachment * * into file libraries\vendor\phpmailer\phpmailer\class.phpmailer.php * public function addEmbeddedImage($path, $cid, $name = '', $encoding = 'base64', $type = '', $disposition = 'inline') */ $mailer->addEmbeddedImage($val, $this); }