Giter VIP home page Giter VIP logo

apostrophe-contactmail's Introduction

apostrophe-contactmail

Contact form mailer for apostrophe cms

DISCONTINUED WITH APOSTROPHE VERSION 2

Disclaimer

I did a basic token exchange, but nothing, that a script can't spoof. Remember: everything that a browser can do, a script can do, too.

How to

You have to create a block or a snippet with a email form:

<form id="contact-form" class="contact-form" action="#">
            	<p class="contact-name">
            		<input id="contact_name" type="text" placeholder="Full Name" value="" name="name" />
                </p>
                <p class="contact-email">
                	<input id="contact_email" type="text" placeholder="Email Address" value="" name="email" />
                </p>
                <p class="contact-message">
                	<textarea id="contact_message" placeholder="Your Message" name="message" rows="15" cols="40"></textarea>
                </p>
                <p class="contact-submit">
                	<span id="contact-submit" data-send-contactmail class="submit">Send Your Email</span>
                </p>
                <div id="response">
                
                </div>
            </form>

With a data-send-contactmail defined button. Than just link this module to your configuration.

Configuration

apostrophe-contactmail: { 
    sendto: '[email protected]'
}

Mandetory parameters

  • sendto The email reciver address for this contact form

Optional parameters:

  • subjectprefix A prefix to the subject field
  • text.success and text.error Content display on success or failure

Dependency

Make sure to configure mailer in apostrophe!

apostrophe-contactmail's People

Contributors

petershaw avatar

Stargazers

Keyton Stanier avatar

Watchers

 avatar James Cloos avatar

Forkers

ehibes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.