1
+
1
2
const sgMail = require ( '@sendgrid/mail' )
2
- sgMail . setApiKey ( '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' )
3
+ // sgMail.setApiKey('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')
3
4
4
5
console . log ( process . env . SENDGRID_API_KEY )
5
6
// fetch("https://api.twilio.com/2010-04-01/Accounts/AC21613e24f57fc71ea268a3f8213b31f6/Messages.json", {
@@ -21,19 +22,19 @@ console.log(process.env.SENDGRID_API_KEY)
21
22
// .then(json => console.log(json))
22
23
23
24
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
+ // }
31
32
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