- public void signAndSend(long secret, Date now) throws IOException, Message.Malformed {
- SMTP.Outgoing.accept(Message.newMessage(new Fountain.StringFountain("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)))
+ 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
+ )