feat: create email-nodemailer package

This commit is contained in:
Elliot DeNolf
2024-04-17 17:10:24 -04:00
parent a1d68bd951
commit fb7925f272
21 changed files with 412 additions and 6 deletions

View File

@@ -31,6 +31,11 @@ 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)