Skip to content

Commit e7bb157

Browse files
committed
more tests
1 parent 6c06df8 commit e7bb157

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sendgrid.env
1+
.env

more_test.js

+17-16
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
12
const sgMail = require('@sendgrid/mail')
2-
sgMail.setApiKey('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')
3+
// sgMail.setApiKey('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')
34

45
console.log(process.env.SENDGRID_API_KEY)
56
// fetch("https://api.twilio.com/2010-04-01/Accounts/AC21613e24f57fc71ea268a3f8213b31f6/Messages.json", {
@@ -21,19 +22,19 @@ console.log(process.env.SENDGRID_API_KEY)
2122
// .then(json => console.log(json))
2223

2324

24-
const msg = {
25-
to: '[email protected]', // Change to your recipient
26-
from: '[email protected]', // Change to your verified sender
27-
subject: 'Sending with SendGrid is Fun',
28-
text: 'and easy to do anywhere, even with Node.js',
29-
html: '<strong>and easy to do anywhere, even with Node.js</strong>',
30-
}
25+
// const msg = {
26+
// to: '[email protected]', // Change to your recipient
27+
// from: '[email protected]', // Change to your verified sender
28+
// subject: 'Sending with SendGrid is Fun',
29+
// text: 'and easy to do anywhere, even with Node.js',
30+
// html: '<strong>and easy to do anywhere, even with Node.js</strong>',
31+
// }
3132

32-
sgMail
33-
.send(msg)
34-
.then(() => {
35-
console.log('Email sent')
36-
})
37-
.catch((error) => {
38-
console.error(error)
39-
})
33+
// sgMail
34+
// .send(msg)
35+
// .then(() => {
36+
// console.log('Email sent')
37+
// })
38+
// .catch((error) => {
39+
// console.error(error)
40+
// })

0 commit comments

Comments
 (0)