> + text_part do > + body Very sneaky. I did not find anything in the online Ruby Mail documentation that said you had to enclose "body" in "text_part".
I only found it by searching through all of the *.rb files looking for "body" and found one example of enclosing it in a text part. Craig > Begin forwarded message: > > From: c...@apache.org > Subject: [whimsy] branch master updated: Add body to affirmation email > Date: June 27, 2020 at 4:21:13 PM PDT > To: "comm...@whimsical.apache.org" <comm...@whimsical.apache.org> > Reply-To: dev@whimsical.apache.org > > This is an automated email from the ASF dual-hosted git repository. > > clr pushed a commit to branch master > in repository https://gitbox.apache.org/repos/asf/whimsy.git > > > The following commit(s) were added to refs/heads/master by this push: > new c9495e9 Add body to affirmation email > c9495e9 is described below > > commit c9495e9e5c3150cef59a70206ceb23b160fd932a > Author: Craig L Russell <apache....@gmail.com> > AuthorDate: Sat Jun 27 16:20:55 2020 -0700 > > Add body to affirmation email > --- > www/officers/coi.cgi | 13 +++++++++++-- > 1 file changed, 11 insertions(+), 2 deletions(-) > > diff --git a/www/officers/coi.cgi b/www/officers/coi.cgi > index f271c50..cfc562b 100755 > --- a/www/officers/coi.cgi > +++ b/www/officers/coi.cgi > @@ -16,7 +16,7 @@ COI_CURRENT_TEMPLATE_URL = File.join(COI_CURRENT_URL, > 'template.txt') > user = ASF::Person.find($USER) > USERID = user.id > USERNAME = user.cn.untaint > -USERMAIL = user.mail.first.untaint > +USERMAIL = "#{USERID}@apache.org".untaint > committees = ASF::Committee.officers + ASF::Committee.nonpmcs > chairs = committees.map do |committee| > committee.chairs.map {|chair| chair[:id]} > @@ -203,7 +203,16 @@ def emit_post(_) > # cc "secret...@apache.org" > from "#{USERMAIL}" > subject "Conflict of Interest affirmation from #{USERNAME}" > - body "This year's Conflict of Interest affirmation is attached." > + text_part do > + body " > +DRAFT DRAFT DRAFT Please review this; nothing has been checked in. > +Send feedback to dev@whimsical.apache.org > +This year's Conflict of Interest affirmation is attached. > +It has been checked into the foundation repository at > +#{COI_CURRENT_URL}/#{user_filename}.\n > +Regards,\n > +#{USERNAME}\n\n" > + end > end > mail.attachments["#{USERID}.txt"] = affirmed > mail.deliver! > Craig L Russell c...@apache.org