https://github.com/chip/sinatra-mail-form
Sinatra mail form - can be used from MiddleMan
https://github.com/chip/sinatra-mail-form
Last synced: 4 months ago
JSON representation
Sinatra mail form - can be used from MiddleMan
- Host: GitHub
- URL: https://github.com/chip/sinatra-mail-form
- Owner: chip
- Created: 2013-06-04T15:33:40.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-12-18T15:51:07.000Z (about 12 years ago)
- Last Synced: 2025-04-30T10:33:41.678Z (10 months ago)
- Language: Ruby
- Homepage: http://chip.github.io/sinatra-mail-form/
- Size: 727 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Sinatra MailForm
This is a tiny project that uses `Sinatra` to accept
form data via an HTTP `POST` method and then email it
via SMTP using the `pony` gem.
An example Apache configuration has been provided and
assumes that the application is mounted under `/app`.
To install:
1. Clone the repo: `git clone https://github.com/chip/sinatra-mail-form.git`
2. Change to the directory: `cd sinatra-mail-form`
3. Run bundler with `bundle` or `bundle install`
4. Copy the example configuration file: `cp mail_form.yml.example mail_form.yml`
5. Edit mail_form.yml to suit your needs
6. Copy apache-vhost.conf.example to an appropriate location on your server:
`sudo cat apache-vhost.conf.example >> /etc/apache2/sites-enabled/000-default`
7. Edit the apache configuration to suit your needs
8. Restart apache: `sudo /etc/init.d/apache2 restart`
9. Make the public directory: `mkdir public`
10. See if it's wired up: http://example.com/test
Enjoy!