Using Javamail you can send to SMTP and I think IMAP as well.
There might be a plugin to Javamail (probably from Lotus themselves) to send to CCMail as well, but as CCMail is very old indeed and superceded by Lotus Notes it could well be that they never went to the trouble.
In that case you will need to use SMTP or IMAP, a corresponding mailserver, and configure the CCMail server to accept email via SMTP or IMAP from that server.
It might be easier to get your organisation to replace CCMail with something else