gpc / grails-mail

The Grails Mail Plugin
http://grails.org/plugin/mail
Apache License 2.0
45 stars 85 forks source link

CC is not optionnal #33

Closed igorrosenberg closed 2 years ago

igorrosenberg commented 8 years ago

In version mail-1.0.7, I think CC cannot be left out :

Cannot resolve which method to invoke for [null, class java.lang.String] due to overlapping prototypes between:
        [interface java.util.Collection, class java.lang.String]
        [interface java.util.Map, class java.lang.String]
  at grails.plugin.mail.MailMessageBuilder.cc(MailMessageBuilder.groovy:214)

It would be good to enable leaving the CC field as null.

(A work-around is to make CC the same as TO)

kefirfromperm commented 8 years ago

Just don't call cc.