dokuwiki-plugin-bureaucracy icon indicating copy to clipboard operation
dokuwiki-plugin-bureaucracy copied to clipboard

File field causes broken emails

Open tobiasmboelz opened this issue 7 years ago • 3 comments

Adding a File field to a form with mail action leads to broken emails with the MIME parts in the body. It looks like the Content-Type (including boundary) is missing in the header.

Here's the relevant part of an example mail:

[…]
Date: Tue, 16 May 2017 20:00:33 +0000
From: […]
MIME-Version: 1.0
Message-Id: <20170516200033.C7458107BC@[…]>

This is a multi-part message in MIME format.
--__________6628bbafa20682a400c51a59ad216bcc
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: base64



--__________6628bbafa20682a400c51a59ad216bcc
Content-Type: application/pdf; id="part1.352701a0@[…]"
Content-Transfer-Encoding: base64
Content-ID: <part1.352701a0@[…]>
Content-Disposition: attachment; filename=[…]


--__________6628bbafa20682a400c51a59ad216bcc--


tobiasmboelz avatar May 16 '17 20:05 tobiasmboelz

I have the same issue here. Is it possible to add a file as an attachment to an email?

Bansheee4912 avatar Mar 27 '19 06:03 Bansheee4912

Unfortunately not solved yet. It looks like the problem is the mail function in core not in bureaucracy. Does anyone know if this worked in earlyer versions? In 2018-04-22 it doesn't for me.

jankowa avatar Mar 12 '20 16:03 jankowa

In my configuration the checkbox htmlmail was unchecked. After activating this setting I was able to send Emails through bureaucracy with attachements.

Bansheee4912 avatar Mar 17 '20 07:03 Bansheee4912