From baa6a6fb72f34e65df1f39ebf02e50c0c68f6e46 Mon Sep 17 00:00:00 2001 From: Marcus Comstedt <marcus@mc.pp.se> Date: Tue, 12 May 1998 00:53:15 +0200 Subject: [PATCH] Removed utterly unnecesary multipart-generation in simple_mail()... Rev: lib/modules/Protocols.pmod/SMTP.pmod:1.5 --- lib/modules/Protocols.pmod/SMTP.pmod | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/modules/Protocols.pmod/SMTP.pmod b/lib/modules/Protocols.pmod/SMTP.pmod index 22f760b151..6550788856 100644 --- a/lib/modules/Protocols.pmod/SMTP.pmod +++ b/lib/modules/Protocols.pmod/SMTP.pmod @@ -84,12 +84,13 @@ class client void simple_mail(string to, string subject, string from, string msg) { send_message(from, ({ to }), - (string)MIME.Message(0, (["mime-version":"1.0", - "subject":subject, - "from":from, - "to":to]), - ({ MIME.Message(msg, - (["content-type":"text/plain;charset=iso-8859-1", - "content-transfer-encoding":"8bit"])) }))); + (string)MIME.Message(msg, (["mime-version":"1.0", + "subject":subject, + "from":from, + "to":to, + "content-type": + "text/plain;charset=iso-8859-1", + "content-transfer-encoding": + "8bit"]))); } } -- GitLab