Auto Email with Multiple To and CC

Please check the above code for auto email . In this Email is going but it is going individually to all users with as to. but it is not coming as TO and CC in one Email. please guide

def send_combined_email(doc, method):
to_list = [“test@gmail.com”, “test1@gmail.com”]
cc_list = [“test2@gmail.com”, “test3@gmail.com”, “test5@gmail.com”]

subject = f"New Drawing"

message = f"""\
    <p>Dear Team,</p>
    <p><small>This is a system generated email, please do not reply.</small></p>
"""

frappe.sendmail(
    recipients=to_list,
    cc=cc_list,
    subject=subject,
    message=message,
    delayed=False,  
    reference_doctype=doc.doctype,
    send_email_to_each_recipient=False,
    reference_name=doc.name
)