Skip to content
Snippets Groups Projects
Commit baa6a6fb authored by Marcus Comstedt's avatar Marcus Comstedt
Browse files

Removed utterly unnecesary multipart-generation in simple_mail()...

Rev: lib/modules/Protocols.pmod/SMTP.pmod:1.5
parent a7a45aab
No related branches found
No related tags found
No related merge requests found
......@@ -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",
(string)MIME.Message(msg, (["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"])) })));
"to":to,
"content-type":
"text/plain;charset=iso-8859-1",
"content-transfer-encoding":
"8bit"])));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment