I found that my Application will send email to me twice when my Email Address is in both TO List and CC List.
How to control the email only sent to the same email address by once but keeping the address is in TO and CC List?
transport.connect();
transport.sendMessage(message,
message.getRecipients(Message.RecipientType.TO));
transport.sendMessage(message,
message.getRecipients(Message.RecipientType.CC));
transport.close();