Change the scope of the $cc variable as it is not needed outside of send_message.