Sh*tmores: Missing Groovy Recipe: Send e-mail from Groovy で紹介されているように AntBuilder を使うと簡単にできる。 上記 blog でのコメント欄にもあるけれどgrails を使っている場合は AntBuilder ではなく Grails - Mail Plugin を使った方が容易だろう。 シェルスクリプトを書く代わりに Groovy で簡単なツールを書く者にとっては Grails のプラグインでない AntBuilder の方が使い安い。 ただ、幾つかライブラリを用意する必要がある。ライブラリを CLASSPATH に設定しないと [mail] Failed to initialise MIME mail: org.apache.tools.ant.taskdefs.email.MimeMailerと表示されてメール