Custom email widget Email CC

Hello , I am trying to create my own email widget , however adding multiple emails to cc and bcc can be tricky
My solution which i can think of is , have a CC input field and then use code studio to get sub string for each email and creating one to many relationship record and passing this object into recipient . Any other solution?

we cannot pass single line data type with multiple emails in recipient or cc or bcc