splitbrain / dokuwiki-plugin-bureaucracy

Create forms and generate pages or emails from them
http://www.dokuwiki.org/plugin:bureaucracy
GNU General Public License v2.0
43 stars 46 forks source link

File field causes broken emails #205

Open tobiasmboelz opened 7 years ago

tobiasmboelz commented 7 years ago

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--
Bansheee4912 commented 5 years ago

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

jankowa commented 4 years ago

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.

Bansheee4912 commented 4 years ago

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