In LaD there is a requirement that mails should be sent anonymously (BCC recipients only). Whether the respective mail server allows this is to be checked, but in the mail API of TL there should be no restriction to express this.
Currently MailHelper checks if at least one field (To, CC, BCC) is filled, otherwise it gives the message "Email contains no recipients". Then the method MailTransport.sendMail(Mail) is called and here it is checked if the To field is filled, otherwise you get the message "Email contains no recipients".
This check should be unified in the sense that at least one of the fields is filled.
Conversion
It is now possible to send mails without recipients in the "TO" (german: "AN") field, if at least one recipient is entered in the fields "CC" or "BCC".
Test
- TestMailHelper.testSendMailWithJustCC()
- TestMailHelper.testSendMailWithJustBCC()
- TestMailHelper.testSendMailWithoutRecipient()