|
|
@ -329,7 +329,7 @@ public class ServiceSend extends ServiceBase {
|
|
|
|
|
|
|
|
|
|
|
|
// Add reply to
|
|
|
|
// Add reply to
|
|
|
|
if (ident.replyto != null)
|
|
|
|
if (ident.replyto != null)
|
|
|
|
imessage.setReplyTo(new Address[]{new InternetAddress(ident.replyto)});
|
|
|
|
imessage.setReplyTo(new Address[]{new InternetAddress(ident.replyto, null)});
|
|
|
|
|
|
|
|
|
|
|
|
// Add bcc
|
|
|
|
// Add bcc
|
|
|
|
if (ident.bcc != null) {
|
|
|
|
if (ident.bcc != null) {
|
|
|
@ -337,7 +337,7 @@ public class ServiceSend extends ServiceBase {
|
|
|
|
Address[] existing = imessage.getRecipients(Message.RecipientType.BCC);
|
|
|
|
Address[] existing = imessage.getRecipients(Message.RecipientType.BCC);
|
|
|
|
if (existing != null)
|
|
|
|
if (existing != null)
|
|
|
|
bcc.addAll(Arrays.asList(existing));
|
|
|
|
bcc.addAll(Arrays.asList(existing));
|
|
|
|
bcc.add(new InternetAddress(ident.bcc));
|
|
|
|
bcc.add(new InternetAddress(ident.bcc, null));
|
|
|
|
imessage.setRecipients(Message.RecipientType.BCC, bcc.toArray(new Address[0]));
|
|
|
|
imessage.setRecipients(Message.RecipientType.BCC, bcc.toArray(new Address[0]));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|