Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken Proxy* #41

Open
wants to merge 51 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
43ed191
mailer
StephenGrider Jul 17, 2017
598ba5e
email boilerplate
StephenGrider Jul 17, 2017
fcfde28
send emails
StephenGrider Jul 17, 2017
7faa7b6
test emails
StephenGrider Jul 17, 2017
454eeba
improve template
StephenGrider Jul 17, 2017
c8e3cfd
added error checking
StephenGrider Jul 18, 2017
821bb80
feedback for feedback
StephenGrider Jul 18, 2017
14de7d3
Update diagrams.xml
StephenGrider Jul 18, 2017
a078497
Update diagrams.xml
StephenGrider Jul 18, 2017
de5aaee
dashboard
StephenGrider Jul 18, 2017
c0b0080
material icons
StephenGrider Jul 18, 2017
e4f3655
nav with link
StephenGrider Jul 18, 2017
ef649f5
finish redux form
StephenGrider Jul 20, 2017
f1400ab
Update diagrams.xml
StephenGrider Jul 20, 2017
a90f0fe
Update diagrams.xml
StephenGrider Jul 20, 2017
b348d35
prop names
StephenGrider Jul 20, 2017
512a9e4
Update diagrams.xml
StephenGrider Jul 20, 2017
6ed860e
redirect
StephenGrider Jul 20, 2017
dcebea4
Update diagrams.xml
StephenGrider Jul 20, 2017
9b778b5
Create 07
StephenGrider Jul 20, 2017
95b1e75
Delete 07
StephenGrider Jul 20, 2017
28f2313
Create .gitkeep
StephenGrider Jul 20, 2017
1393cdf
Added diagrams.xml
StephenGrider Jul 20, 2017
11628df
added localtunnel
StephenGrider Jul 20, 2017
9e6ebae
test webhook
StephenGrider Jul 20, 2017
fa6e54d
encode survey data
StephenGrider Jul 20, 2017
1f1d49a
parse route
StephenGrider Jul 20, 2017
697c11e
uniqueness
StephenGrider Jul 20, 2017
dcf011b
lodash chain
StephenGrider Jul 20, 2017
f4c66f5
bad query
StephenGrider Jul 21, 2017
5bac251
add query
StephenGrider Jul 21, 2017
0b8c497
execute query
StephenGrider Jul 21, 2017
36caaaa
added stuff
StephenGrider Jul 21, 2017
ee90b61
fetch list of surveys
StephenGrider Jul 21, 2017
5479139
whitelist fields
StephenGrider Jul 21, 2017
b573500
wiring surveys
StephenGrider Jul 21, 2017
9e49251
wire react to redux
StephenGrider Jul 21, 2017
8d1a0ea
survey-list
StephenGrider Jul 21, 2017
d8525e1
reverse list
StephenGrider Jul 21, 2017
b1c830b
Merge branch 'master' of github.com:StephenGrider/FullstackReactCode
StephenGrider Jul 21, 2017
6f66b1d
Delete diagrams.xml
StephenGrider Jul 21, 2017
0a6543d
Added diagrams.xml
StephenGrider Jul 21, 2017
2e04d65
Merge branch 'master' of github.com:StephenGrider/FullstackReactCode
StephenGrider Jul 21, 2017
07c8983
Update diagrams.xml
StephenGrider Jul 23, 2017
6842459
Delete .DS_Store
StephenGrider Jul 24, 2017
f0bb84b
Delete .DS_Store
StephenGrider Jul 24, 2017
5e84779
Delete .DS_Store
StephenGrider Jul 24, 2017
9157079
Create README.md
StephenGrider Jul 26, 2017
da3cbbc
Delete 001 - process.png
StephenGrider Jul 26, 2017
05bb635
Broken Proxy*
joshuaaguilar20 Nov 24, 2018
23ab0cb
Delete package.json
joshuaaguilar20 Nov 26, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion server/services/Mailer.js
Original file line number Diff line number Diff line change
@@ -2,6 +2,15 @@ const sendgrid = require('sendgrid');
const helper = sendgrid.mail;
const keys = require('../config/keys');

class Mailer extends helper.Mail {}
class Mailer extends helper.Mail {
constructor({ subject, recipients }, content) {
super();

this.from_email = new helper.Email('no-reply@emaily.com');
this.subject = subject;
this.body = new helper.Content('text/html', content);
this.recipients = this.formatAddresses(recipients);
}
}

module.exports = Mailer;