# File lib/reap/announce_task.rb, line 129
  def run
    puts "\n#{@message}\n\n"
    print "Send? [Y/n] "
    until inp = $stdin.gets[0,1] ; sleep 1 ; end
    if (inp || 'y').downcase == 'y'
      # ask for password
      print "Password for #{@account}: "
      until passwd = $stdin.gets.strip ; sleep 1 ; end
      mail = %Q{
        |From: #{@from}
        |To: #{@address}
        |Subject: #{@subject}
        |
        |#{@message}
        }.margin
      begin
        # --- Send using SMTP object and an adaptor
        Net::SMTP.enable_tls if Net::SMTP.respond_to?(:enable_tls) and @tls
        Net::SMTP.start(@server, @port, @domain, @account, passwd, @authtype) do |s|
          s.send_message mail, @from, @address
        end
        puts "Email sent successfully to #{@address}."
      rescue => e
        puts "Email delivery failed."
        puts e
      end
    else
      puts "Reap announce task canceled."
      exit 0
    end
  end