I don't see anything obvious. You say that this code completes (i.e. you would see a log message from after the call to Transport.send()), right? Maybe your SMTP host is configured to prevent multiple CC's? (a wild guess on my part)
Can you run something simple like this:
If you can't run that, import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;
public class test{
public static void main(
String args[]){
try{
Properties props = new Properties();
props.put("mail.transport.protocol", "SMTP");
props.put("mail.smtp.host", "xxxxxxxx");
Session session = Session.getDefaultInstance(props, null);
MimeMessage msg = new MimeMessage(session);
// address our message
InternetAddress eccProb = new InternetAddress("xxxxxxx");
InternetAddress to = new InternetAddress("xxxxxxxx");
InternetAddress ccArr[] = new InternetAddress[2];
ccArr[0] = new InternetAddress("xxxxxxxx");
ccArr[1] = new InternetAddress("xxxxxxxx");
msg.setFrom(eccProb);
msg.setRecipients(Message.RecipientType.CC, ccArr);
msg.addRecipient(Message.RecipientType.TO, to);
msg.setSubject("This is a test");
// place the text in the message body
msg.setText("this is a test");
// send the message
Transport.send(msg);
} catch (Exception e){
e.printStackTrace();
}
}
}