SusiMail: Separate recipients by commas

This commit is contained in:
zzz
2017-12-22 23:02:29 +00:00
parent 4ee6ae96a2
commit 70b2dbec56

View File

@@ -270,10 +270,12 @@ class Mail {
*/
public static void appendRecipients( StringBuilder buf, ArrayList<String> recipients, String prefix )
{
for( String recipient : recipients ) {
for (int i = 0; i < recipients.size(); i++) {
buf.append( prefix );
prefix ="\t";
buf.append( recipient );
buf.append(recipients.get(i));
if (i < recipients.size() - 1)
buf.append(',');
buf.append( "\r\n" );
}
}