From d66467c2d0213a317ccb8824a712a4717a59ce54 Mon Sep 17 00:00:00 2001
From: Marcus Comstedt <marcus@mc.pp.se>
Date: Tue, 12 May 1998 17:36:43 +0200
Subject: [PATCH] Transferred some fixes from the 0.6 repository.

Rev: lib/modules/Protocols.pmod/SMTP.pmod:1.3
---
 lib/modules/Protocols.pmod/SMTP.pmod | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/lib/modules/Protocols.pmod/SMTP.pmod b/lib/modules/Protocols.pmod/SMTP.pmod
index b65d3bb4dd..34e2c4ef14 100644
--- a/lib/modules/Protocols.pmod/SMTP.pmod
+++ b/lib/modules/Protocols.pmod/SMTP.pmod
@@ -61,7 +61,7 @@ class client
 
     if(!connect(server,25))
     {
-      throw(({"Failed to connect to news server.\n",backtrace()}));
+      throw(({"Failed to connect to mail server.\n",backtrace()}));
     }
 
     if(readreturncode()/100 != 2)
@@ -73,9 +73,9 @@ class client
   
   void send_message(string from, string *to, string body)
   {
-    cmd("MAIL FROM:"+from);
+    cmd("MAIL FROM: "+from);
     foreach(to, string t)
-      cmd("RCPT TO:"+t);
+      cmd("RCPT TO: "+t);
     cmd("DATA");
     cmd(body+"\r\n.");
     cmd("QUIT");
@@ -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