require 'sinatra' require 'pony' get '/' do <<-EOHTML
EOHTML end post '/signup' do user = params[:user] body = <<-EOHTML Hello #{user['name']}! Click here to confirm your account! EOHTML Pony.mail(:from => 'admin@example.com', :to => user['email'], :subject => 'Account confirmation', :body => body ) 'Thanks! Go check your email!' end get '/confirm' do 'Confirm your new account!' end