Small coding error

Posted on 2009-01-23 08:56:16

Found a nice gem today, in a Java class that’s responsible for sending mail:

// CC Receiver
if (ccAddress != null) {
    message.addRecipient(
       Message.RecipientType.TO,
       new InternetAddress(ccAddress));
}

I haven’t heard the customer complain yet that the CC receiver is actually listed in the “To” field…

Posted in: Work