grails / grails-mail

The Grails Mail Plugin
https://grails.github.io/grails-mail/
Apache License 2.0
15 stars 25 forks source link

'to' value limit? send multiple emails #35

Closed pangeaos closed 5 years ago

pangeaos commented 5 years ago

I'm wondering if there is a limit for the TO value. I want to send multiple emails at send time using same smtp config. I have a list with all 'to's

toList.each { String emailTo, String name ->
    String nameTo = name ?: emailTo
    sendMail {
        to emailTo
        subject 'Test #1'
        html view: "/mail/simple", model: [name: nameTo]
    }
}

Any limitation?

sbglasius commented 5 years ago

If there is a limitation that would be on the underlying Java Mail api, not the mail plugin.