Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

requestizer

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

requestizer

HTML contact requests made easy

  • 0.9.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

requestizer

By Oceanhouse21

Build Status

requestizer

requestizer is a leightweight tool enabling your oganisation to receive contact requests via email, built upon express.

DEPENDENCIES

USAGE

Install, configure and deploy on heroku:

git clone https://github.com/oceanhouse21/requestizer
heroku create
git push heroku master

Copy and paste the returned Heroku URI. Add Heroku config variables:

heroku config:set SENDGRID_USERNAME="your_username"
heroku config:set SENDGRID_PASSWORD="your_password"
heroku config:set FROM_EMAIL="from@gmail.com"
heroku config:set TO_EMAIL="to@gmail.com"

Finally embed this script in any of your html files and change the heroku link.

<form id="requestizerForm" action="javascript:submit();"> 
  <label for="email">Email:</label>
  <input type="text" name="email">
  <label for="message">Message:</label>
  <input type="text" name="message">
  <button id="submitForm">Submit</button>
</form>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript">
  function submit () {
    var formData = JSON.stringify($("#requestizerForm").serializeArray());
    $.ajax({
      type: "POST",
      url: "http://yourapp.herokuapp.com/request",
      contentType: "application/json",
      data: formData,
      success: function(){
        window.alert("Thank you for your request!");
      },
      error: function(){
        window.alert("Sorry, something went wrong ;-(\nPlease try again.");
      }
    });
    return false;
  };
</script>

TODO

  • Variable templates and submission data
  • Add responsive email template as layout

LICENSE

MIT License. Copyright 2014-2015 Oceanhouse21 GmbH. http://www.oceanhouse21.com

You are not granted rights or licenses to the trademarks of Oceanhouse21 GmbH, including without limitation the requestizer name.

Keywords

FAQs

Package last updated on 23 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc