Skip to content

rubyni/kakaomailer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kakao Mailer

A simple form processing for static pages

How it works

Register your info and get your token:

    $ curl --data "email=<your-email>&name=<your-name>&url=<your-url-to-redirect>" http://kakaomailer2.herokuapp.com/register
Token: 780a8a9b-dc2d-4a58-83ar-4deefe446dee

Test (optional):

curl --data "email=<your_email>&name=<your_name>&message=<your_message>&subject=<your_subject>" http://kakaomailer2.herokuapp.com/user/<token>

The form will be sent through AJAX... soon more details about how...

<form action="https://kakaomailer2.herokuapp.com/user">
  Email: <input type="text" name="name"><br>
  Name: <input type="text" name="email"><br>
  Subject: <input type="text" name="subject"><br>
  Message: <textarea name="message" cols="40" rows="5"></textarea>
  <input type="submit" value="Send Message">
</form>

Deploying

This app was built to be deployed to Heroku

	$ git clone https://github.com/rubyni/kakaomailer.git
	$ heroku create
	$ heroku config:set SENDGRID_API_KEY=<key>
	$ heroku config:set REDIRECT_URL=<URl you want to redirect from root path >
	$ heroku addons:add heroku-postgresql:dev
	$ heroku ps:scale web=1

About

A simple form processing for static pages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%