Wrap text
Report abuse
|
|
def send_question
gnupg = GnuPG.new :recipient=>"email@hotel.com"
gnupg.load_public_key File.read("/path/to/public/key.asc")
if gnupg.public_key_loaded?
email = Notifier::create_card(params[:comment])
email.body = gnupg.encrypt(email.body)
Notifier::deliver(email)
end
end
|