A simple one route mail sending API to power JS based a contact form
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
lib
tmp
.gitignore
Gemfile
Gemfile.lock
Readme.md
config.ru
rodamail.rb

Readme.md

RodaMail

A simle mail sending API (one route) to send email message by using the ruby mail gem (already configured for sending via gmail). This API is meant to be used to back a JS contact form, but feel free to modify to send any kind of messages (alert, logs, etc...).

Install dependencies

bundle

Configure

Edit ./config/env.rb

Run

bundle exec rackup

One route

POST /mail

from_name:    "Mario Foo"
from_address: "mario@example.com",
body:         "bar"

easy as that,

enjoy!

@makevoid