class AnswerMe

	def answer
		if $mail.subject.include?("answer me")

			$session.deliver do
			  to "ricardo.baumann@zenvia.com"
			  subject "Having fun in Puerto Rico! answer me again"
			  text_part do
			    body "Text of plaintext message."
			  end
			  html_part do
			    content_type 'text/html; charset=UTF-8'
			    body "<p>Text of <em>html</em> message.</p>"
			  end
			  #add_file "/path/to/some_image.jpg"
			end

			$mail.mark(:read)
		else
			puts "Not mine"
		end
	end

end