--- a/controllers/emailer.js
+++ b/controllers/emailer.js
@@ -27,23 +27,9 @@
*/
module.exports.sendEmail = function (emailTo,notification) {
- //var destinations = "'";
- /*
- var destinations ="";
- for(i=0;i<emailTo.length;i++){
- destinations += emailTo[i];
- if(i<emailTo.length-1 && emailTo.length != 1){
- destinations += ", "
- }
- }
- */
- /*
- if(emailTo.length != 1){
- destinations += "'";
- }
- */
- var mailOptions={
- from: emailconfig.userEmail,
+
+ var mailOptions={
+ from: emailconfig.userEmail,
//bcc: destinations,
bcc: emailTo,
subject: 'New notification!',