Skip to content

Commit

Permalink
Fix #25: Personal Information removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Wilson committed Nov 7, 2019
1 parent 738873d commit 9b7d976
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/email-sender.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,21 @@ var nodemailer = require('nodemailer');
exports.sendMessage = async function (err) {

//Recipients list of users to send the email too
var receipiants = 'rwilson31@myseneca.ca,david.humphrey@senecacollege.ca';
//receipiants is commas separated (emailName@hotmail.com,emailName2@hotmail.com)
var receipiants = '';

//Credientials to send an email from
var transporter = nodemailer.createTransport({
service: 'gmail',
auth: {
user: 'seneca.telescope@gmail.com',
pass: 'Password12345%^'
user: '', // Email Name (.env variables must be used refer to issue#60)
pass: '' //Email Pass (.env variables must be used refer to issue#60)
}
});

//Email Content
const mailOptions = {
from: 'seneca.telescope@gmail.com',
from: '', //Email Name
to: receipiants,
subject: 'Seneca Telescope had an error', //Subject Line
html: '<p>An Error has occurred <br/>Error Message:' + err + '</p>' //Message Body
Expand Down

0 comments on commit 9b7d976

Please sign in to comment.