HashMap header = new HashMap();
header.put("MIME-Version", "1.0");
header.put("Content-Transfer-Encoding", "8bit");
header.put("Content-Type", "text/plain; charset=iso-8859-1");
header.put("To", p.email);
header.put("Subject", "JWIG password");
header.put("From", root.email);
header.put("Reply-To", root.email);
header.put("Errors-To", root.email);
String body =
"Your login for the JWIG meta-service is: "+p.login+"\n"+
"and the password is: "+p.password+"\n\n"+
"Go to "+getURL(Run.class)+" to log in.";
boolean ok = sendMail(p.email, header, body, "iso-8859-1");
|