Sending group email to all contact addresses

This commit is contained in:
Mohammad Rezaei 2023-10-16 15:41:28 +03:30
parent 9a4b73e819
commit 73dd4677da
5 changed files with 42 additions and 3 deletions

View file

@ -1381,6 +1381,12 @@ export class ComposePopupView extends AbstractViewPopup {
}
});
let sToAddress = this.to();
if (/".*" <.*,.*>/g.test(sToAddress)) {
sToAddress = sToAddress.match(/<.*>/g)[0].replace(/[<>]/g, '');
}
const
identity = this.currentIdentity(),
params = {
@ -1389,7 +1395,7 @@ export class ComposePopupView extends AbstractViewPopup {
messageUid: this.draftUid(),
saveFolder: sSaveFolder,
from: this.from(),
to: this.to(),
to: sToAddress,
cc: this.cc(),
bcc: this.bcc(),
replyTo: this.replyTo(),