diff --git a/package.json b/package.json index aef5793..99b0bf5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ep_email_notifications", "description": "Subscribe to a pad and recieve an email when someone edits your pad", - "version": "0.0.2", + "version": "0.0.3", "author": { "name": "johnyma22", "email": "john@mclear.co.uk", diff --git a/update.js b/update.js index dc1fde8..28c6c96 100644 --- a/update.js +++ b/update.js @@ -48,10 +48,10 @@ exports.notifyBegin = function(padId){ if(!userIsOnPad){ console.debug("Emailing "+recipient +" about a new begin update"); server.send({ - text: "Your pad at "+urlToPads+padId +" is being edited, we're just emailing you let you know :)", + text: "Your pad at "+urlToPads+padId +" is being edited, we're just emailing you let you know :)\n\n -- This plugin is in alpha state, can you help fund it's development? https://github.com/johnmclear/ep_email_notifications", from: fromName+ "<"+fromEmail+">", to: recipient, - subject: "Someone begin editing "+padId + subject: "Someone started editing "+padId }, function(err, message) { console.log(err || message); }); } else{ @@ -79,7 +79,7 @@ exports.notifyEnd = function(padId){ if(!userIsOnPad){ console.debug("Emailing "+recipient +" about a pad finished being updated"); server.send({ - text: "Your pad at "+urlToPads+padId +" has finished being edited, we're just emailing you let you know :) The changes look like this:" + changesToPad, + text: "Your pad at "+urlToPads+padId +" has finished being edited, we're just emailing you let you know :) \n\n The changes look like this: \n" + changesToPad, from: fromName+ "<"+fromEmail+">", to: recipient, subject: "Someone finished editing "+padId