chore: refactor sendMail to make it reusable

This commit is contained in:
Ephraim Atta-Duncan
2023-06-21 14:09:42 +00:00
parent 2798cd624d
commit 0456fe9826
5 changed files with 41 additions and 27 deletions

View File

@ -14,7 +14,13 @@ export default function Send() {
onClick={async () => {
console.log('clicked');
await sendMail({ email: 'duncan@documenso.com' });
await sendMail({
email: 'duncan@documenso.com',
type: 'invite',
documentName: 'Documsenso Salary Invoice.pdf',
name: 'Mark Cuban',
firstName: 'Mark',
});
alert('sent');
}}