Sending email in batches through day cq mailer messagegateway failed with error - "The MimeMessage is already built.null"
We have a requirement to send the email in batches as we have a huge recipient list and our smtp servers are not allowing that huge list at a time in one go.
So, we are writing a logic to send the email to the recipient list in chunks. While doing that at the line "messageGateway.send(email);", I'm facing an error "The MimeMessage is already built.null".
Could anyone help me on this.