This actually helped alot, here is the relevant excerpt (defn plain- message). It is rewritten the original way I wanted to do it. Here it is:
(defn plain-message [{:keys [from to cc bcc subject body]}] (doto (new MimeMessage (get-default-session)) (.setRecipients Message$RecipientType/TO (into-array Address to)) (.setRecipients Message$RecipientType/CC (into-array Address cc)) (.setRecipients Message$RecipientType/BCC (into-array Address bcc)) (.setFrom from) (.setSubject subject) (.setContent body "text/plain"))) On May 27, 8:09 am, Aaron Cohen <aa...@assonance.org> wrote: > On Thu, May 27, 2010 at 11:07 AM, Aaron Cohen <aa...@assonance.org> wrote: > > Judging from the javadoc, setRecipients takes an array of addressses > > as its second parameter. So try (into-array to), (into-array for), > > etc. > > Or rather: (into-array [to]). > > You may need to specify the type which would be: (into-array Address [to]) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en