Subject optional.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2066 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2007-03-02 03:53:06 +00:00
parent 1335ce4b2e
commit 55b171e3cb
+3 -1
View File
@@ -142,7 +142,9 @@ public class MailUtil
message.addRecipient(Message.RecipientType.TO,
new InternetAddress(recipients[ii]));
}
message.setSubject(subject);
if (subject != null) {
message.setSubject(subject);
}
Transport.send(message);
} catch (Exception e) {