Sending emails with more than 50 recipients

0
Our application sends emails, routing it to our company’s email server. Our sysadmins tell me that the limit to the number of recipietnts is 20000. However, in the logs of our applkcation I can see error messages that we have exceeded 50 recipients.   Is there a built-in/default limit to the Mendix Email Template module of 50 recipients? If so, is there a way to bypass this?
asked
3 answers
0

How are you sending that email? Is it one mail and do you put all the adresses in the to or BCC fields? Then check the length of this attribute because 50 *20 characters can add up to a lot. Or do you iterate over the recipients and do you create an email for each mail address seperately? Because this would method would probably not give you these kind of errors.

Regards,

Ronald

 

answered
0

The emails are all added in the “TO” field seperated by commas.

 

 

2021-03-22T18:47:00.419307 [APP/PROC/WEB/0]   ERROR - Email: Sending email caused an error: 554 Transaction failed: Recipient count exceeds 50.
2021-03-22T18:47:00.419367 [APP/PROC/WEB/0]   ERROR - Email: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: org.apache.commons.mail.EmailException: Sending the email to the following server failed : email-smtp.us-east-1.amazonaws.com:25
2021-03-22T18:47:00.419395 [APP/PROC/WEB/0]       at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:156)
2021-03-22T18:47:00.419484 [APP/PROC/WEB/0]   Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: org.apache.commons.mail.EmailException: Sending the email to the following server failed : (server name here…. manually changed this for privacy):25
2021-03-22T18:47:00.419512 [APP/PROC/WEB/0]       at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)
2021-03-22T18:47:00.419758 [APP/PROC/WEB/0]   Caused by: org.apache.commons.mail.EmailException: Sending the email to the following server failed : email-smtp.us-east-1.amazonaws.com:25
2021-03-22T18:47:00.419824 [APP/PROC/WEB/0]       at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1469)
2021-03-22T18:47:00.419842 [APP/PROC/WEB/0]       at org.apache.commons.mail.Email.send(Email.java:1496)
2021-03-22T18:47:00.419921 [APP/PROC/WEB/0]       at emailtemplate.mail.Sender.send(Sender.java:182)

answered
0

With certain service providers I think the limit of email recipients is set. 

Check https://forums.aws.amazon.com/thread.jspa?threadID=97111

Although this could be a workaround and I am not sure how it works, check if you can have email forwarding groups created and use it to send emails.

answered