php-simple-mail icon indicating copy to clipboard operation
php-simple-mail copied to clipboard

Attachments in default mail client Mac OS

Open technobulka opened this issue 8 years ago • 2 comments

Sending email with attachments:

$send = SimpleMail::make()
    ->setTo($email_to, "")
    ->setFrom($email_form, "")
    ->setSubject("Test attachments")
    ->setMessage("Text")
    ->setHtml()
    ->setWrap(80)
    ->addAttachment('1.png')
    ->addAttachment('2.png')
    ->send();

Open in "Mail" and see this:

This is a multi-part message in MIME format. --ab6e7f92212c31cf6e8a62f3505b117e Content-type:text/html; charset="utf-8" Content-Transfer-Encoding: 7bit 
Text
--ab6e7f92212c31cf6e8a62f3505b117e Content-Type: application/octet-stream; name="1.png" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="1.png" iVBORw0KGgoAAAANSUhE...
--ab6e7f92212c31cf6e8a62f3505b117e Content-Type: application/octet-stream; name="2.png" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="2.png" JVBERi0xLjMK...
--ab6e7f92212c31cf6e8a62f3505b117e--

Tested in other programs and problems did not arise.

technobulka avatar Apr 03 '17 07:04 technobulka

Hi, thanks for reporting this, which version of macOS are you using?

eoghanobrien avatar Apr 03 '17 17:04 eoghanobrien

OS - 10.10.5 Mail - 8.2

technobulka avatar Apr 04 '17 07:04 technobulka