You should use a list in your to field.
E.g. :
[ "liz6beigle@hotmail.com",
"another.one@email.com" ]
Gmail has a limit of bounces and recipients you can send at the same time.
You cannot store multiple emails under a single string.
Placing a single email address on each line will give better readability and prevent parsing errors.
Here is a code sample in Java from google. I hope it will help others to understand :
/**
* Create a MimeMessage using the parameters provided.
*
* @param to Email address of the receiver.
* @param from Email address of the sender, the mailbox account.
* @param subject Subject of the email.
* @param bodyText Body text of the email.
* @return MimeMessage to be used to send email.
* @throws MessagingException
*/
public static MimeMessage createEmail(String to, String from, String subject,
String bodyText) throws MessagingException {
Properties props = new Properties();
Session session = Session.getDefaultInstance(props, null);
MimeMessage email = new MimeMessage(session);
InternetAddress tAddress = new InternetAddress(to);
InternetAddress fAddress = new InternetAddress(from);
email.setFrom(new InternetAddress(from));
email.addRecipient(javax.mail.Message.RecipientType.TO,
new InternetAddress(to));
email.setSubject(subject);
email.setText(bodyText);
return email;
}
Gmail API : Sending Messages
Check the first code sample.