Check that your CC recipients are actually getting the email.
|Reported by:||Owned by:||nextime|
I used your code as a base for a script to send email to each ticket holder so I won't uncategorically state that your script has an error, just that it probably does.
The smptlib.sendmail method delivers the message body (param 3) to only those recipients included in the To parameter (param 2) - so if you want the CC folks to get the email you need to also include them in param 2.
You probably want error checking to ensure that mailmsgCc? has content.