reduce code by implementing function to create $to, $cc and $bcc strings