From 09cdce6ec03327b53fbd6482a077826363a747a9 Mon Sep 17 00:00:00 2001
From: "j.goderbauer" <j.goderbauer@adito.de>
Date: Mon, 27 May 2019 11:12:14 +0200
Subject: [PATCH] fix: writing mail with no content

---
 process/Email_lib/process.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/process/Email_lib/process.js b/process/Email_lib/process.js
index b7fc1638e9..7b719e44a5 100644
--- a/process/Email_lib/process.js
+++ b/process/Email_lib/process.js
@@ -127,6 +127,8 @@ Email.prototype.getRFCmail = function ()
 
     if (this.body)
         mail.addText(mailId, this.body, "text/html", ENCODING, null);
+    else
+        mail.addText(mailId, "", "text/html", ENCODING, null);
     
     //"X-Unsent" is a very badly, non-standardised header to gently ask the mail client that the mail should open in a compose-mode
     //this is mainly done for Microsoft Outlook for Windows. 
-- 
GitLab