use SMTP.Outgoing.enqueue() rather than accept()
authoradam <adam@megacz.com>
Sat, 17 Mar 2007 08:51:37 +0000 (08:51 +0000)
committeradam <adam@megacz.com>
Sat, 17 Mar 2007 08:51:37 +0000 (08:51 +0000)
darcs-hash:20070317085137-5007d-3947e412ac5f113e0628196b1f686770e8847db5.gz

src/org/ibex/mail/Confirmation.java

index ccb8793..e64c658 100644 (file)
@@ -102,17 +102,17 @@ public abstract class Confirmation implements Externalizable {
     }
 
     public void signAndSend(Address sender, long secret, Date now) throws IOException, Message.Malformed {
-        SMTP.Outgoing.accept(Message.newMessage(new Fountain.StringFountain("From: "    + sender + "\r\n" +
-                                                                            "To: "      + who.toString(true) + "\r\n" +
-                                                                            "Subject: confirm " + getDescription() + "\r\n" +
-                                                                            "Message-Id: "+Message.generateFreshMessageId()+"\r\n" +
-                                                                            "\r\n" +
-                                                                            "Please click the link below to " + getDescription() + "\r\n" +
-                                                                            getURL(sign(secret))),
-                                                sender,
-                                                who
-                                                )
-                             );
+        SMTP.Outgoing.enqueue(Message.newMessage(new Fountain.StringFountain("From: "    + sender + "\r\n" +
+                                                                             "To: "      + who.toString(true) + "\r\n" +
+                                                                             "Subject: confirm " + getDescription() + "\r\n" +
+                                                                             "Message-Id: "+Message.generateFreshMessageId()+"\r\n" +
+                                                                             "\r\n" +
+                                                                             "Please click the link below to " + getDescription() + "\r\n" +
+                                                                             getURL(sign(secret))),
+                                                 sender,
+                                                 who
+                                                 )
+                              );
     }
 
     public String sign(long secret) throws IOException {