GithubHelp home page GithubHelp logo

shekar73 / 2notify Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tsott/2notify

0.0 1.0 0.0 61 KB

Package for automated notifications using email and facebook timeline.

JavaScript 94.00% CSS 0.86% HTML 5.14%

2notify's Introduction

#2Notify

Package for automated notifications using email and facebook timeline.

##Installation To install the package use the command

meteor add tsott:2Notify

##Usage 2Notify is a package that sends automatic email notifications and automaticaly posts to users' Facebook timeline. Notifications are send once every hour if the set time to send them has passed.

In order to use ToNotify a collection called notifications is needed. It needs to contain the following fields in a document:

  • delay - the date to send notifications
  • fb_notify
  • mail_notify
  • emails
  • fb_id
  • token

Adding {{> toNotify}} to the applications template places the package's user interface on the page. It creates fields for adding email adresses to send notifications to. Also a Notify FB friends button is created for sending Facebook notifications*. Then in the application event that triggers adding documents to the collection notifications the following code needs to be used.

Meteor.myFunctions.toNotify();
var fb_notify = Session .get('notify_fb ');

When everything is set and the date (delay ) to send notifications has passed the notifications collection is checked for documents that have the mail_notify and fb_notify values set appropriately.

The package needs to have the SMTP address configured for an apllication to be able to send emails. This needs to be done in the Meteor.startup(function()) on the server side. The required format is:

  • On first use a configuration form is shown. It allows for setting the notification details for both email notifications and Facebook timeline posts.

2notify's People

Contributors

tsott avatar

Watchers

 avatar

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.