File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 11import nodemailer from 'nodemailer'
2- import mg from 'nodemailer- mailgun-transport'
2+ import MailgunTransport from 'mailgun-nodemailer -transport'
33
44const auth = {
5- auth : {
6- api_key : process . env . MAILGUN_KEY ,
7- domain : 'mg.colepeters.com' ,
8- } ,
5+ apiKey : process . env . MAILGUN_KEY ,
6+ domain : 'mg.colepeters.com' ,
97}
108
11- const transporter = nodemailer . createTransport ( mg ( auth ) )
9+ const transporter = nodemailer . createTransport ( new MailgunTransport ( { auth } ) )
1210
1311const mailer = async ( { name, email, message } ) => {
1412 const from = `${ name } <${ email } >`
Original file line number Diff line number Diff line change 1616 "@enhance/image" : " ^1.0.0" ,
1717 "@enhance/styles-cribsheet" : " ^0.0.11" ,
1818 "nodemailer" : " ^6.9.13" ,
19- "nodemailer- mailgun-transport" : " ^2.1.5 "
19+ "mailgun-nodemailer- transport" : " ^3.0.2 "
2020 }
2121}
You can’t perform that action at this time.
0 commit comments