X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Fmail%2FConfirmation.java;fp=src%2Forg%2Fibex%2Fmail%2FConfirmation.java;h=f741890ecb98aa6309b88e5c89976c8b2ad0dd2e;hb=2c8ae0653dc1413eadd8ec2a78bbfd3431570526;hp=c5e00228dc833a3644ef4f66581fe8850da417ea;hpb=7df4e0e13d28ceeabf21499b7cccc7557fede22b;p=org.ibex.mail.git diff --git a/src/org/ibex/mail/Confirmation.java b/src/org/ibex/mail/Confirmation.java index c5e0022..f741890 100644 --- a/src/org/ibex/mail/Confirmation.java +++ b/src/org/ibex/mail/Confirmation.java @@ -84,14 +84,13 @@ public abstract class Confirmation implements Externalizable { } public void signAndSend(long secret, Date now) throws IOException, Message.Malformed { - SMTP.Outgoing.accept(new Message(new Stream("From: " + FROM + "\r\n" + - "To: " + who.toString(true) + "\r\n" + - "Subject: confirm " + getDescription() + "\r\n" + - "\r\n" + - "Please click the link below to " + getDescription() + "\r\n" + - sign(secret)), - new Message.Envelope(FROM, who, now) - ) + SMTP.Outgoing.accept(Message.newMessage(new Stream("From: " + FROM + "\r\n" + + "To: " + who.toString(true) + "\r\n" + + "Subject: confirm " + getDescription() + "\r\n" + + "\r\n" + + "Please click the link below to " + getDescription() + "\r\n" + + sign(secret)), + FROM, who) ); }