We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rcptTo
1 parent 7c92e1e commit aa05036Copy full SHA for aa05036
mail/mail/doctype/mail_queue/mail_queue.py
@@ -665,6 +665,7 @@ def _process(self) -> None:
665
call_id += 1
666
667
if not self.save_as_draft:
668
+ recipients = list({rcpt["email"] for rcpt in json_loads(self.recipients)})
669
submission_call = [
670
"EmailSubmission/set",
671
{
@@ -684,13 +685,13 @@ def _process(self) -> None:
684
685
},
686
"rcptTo": [
687
- "email": rcpt["email"],
688
+ "email": rcpt,
689
"parameters": {
690
"NOTIFY": "DELAY,FAILURE",
- "ORCPT": f"rfc822;{rcpt['email']}",
691
+ "ORCPT": f"rfc822;{rcpt}",
692
693
}
- for rcpt in json_loads(self.recipients)
694
+ for rcpt in recipients
695
],
696
697
0 commit comments