Create a gist now

Instantly share code, notes, and snippets.

DAZ4126 Contact form code
post '/' do
require 'pony'
from: "DAZ4126<>",
to: '',
subject: "A message from the DAZ4126 website",
body: params[:message],
port: '587',
via: :smtp,
via_options: {
:address => '',
:port => '587',
:enable_starttls_auto => true,
:user_name => ENV['SENDGRID_USERNAME'],
:password => ENV['SENDGRID_PASSWORD'],
:authentication => :plain,
:domain => ''
redirect '/success'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment