Let's try this again. Having an attachment in the middle of a message removes 
everything that follows it. :-(

On Jul 24, 2017, at 8:47 AM, Craig Russell <[email protected]> wrote:

diff --git a/www/board/agenda/views/actions/todos.json.rb 
b/www/board/agenda/views/actions/todos.json.rb
index 205a67e..c980c2d 100644
--- a/www/board/agenda/views/actions/todos.json.rb
+++ b/www/board/agenda/views/actions/todos.json.rb
@@ -123,6 +123,22 @@ if @establish and env.password
        ASF::Committee.add(pmc.downcase, members)
      end
    end 
+    # send out congratulations email
+    ASF::Mail.configure
+    sender = ASF::Person.new(env.user)
+    mail = Mail.new do
+      from "#{sender.public_name} <#{sender.id}@apache.org>"
+      to project.dev_mail_list()
+      cc 'Apache Board <[email protected]>'
+      subject "Congratulations to Apache Top Level Project " + project
+      body "Dear " + project + " ,\n\nAt this month's board meeting, " +
+      project + " was approved to become a top level project with " +
+      id + " as project chair. Congratulations and best wishes."
+      "\n\nWarm regards,\n\n#{sender.public_name}"
+    end
+
+    mail.deliver!
+
  end

  # create 'victims' file for tlpreq tool

Craig L Russell
Secretary, Apache Software Foundation
[email protected] http://db.apache.org/jdo

Reply via email to