feat: abstract nodemailer into email adapter interface

This commit is contained in:
Elliot DeNolf
2024-04-17 15:17:57 -04:00
parent abf0461d80
commit a1d68bd951
12 changed files with 196 additions and 218 deletions

View File

@@ -31,11 +31,6 @@ export default buildConfigWithDefaults({
},
})
const email = await payload.sendEmail({
to: 'test@example.com',
subject: 'This was sent on init',
})
// Create image
const imageFilePath = path.resolve(dirname, '../uploads/image.png')
const imageFile = await getFileByPath(imageFilePath)