const { data, error } = await nuntly.emails.send({
from: '[email protected]',
subject: 'Verify Your Email Address',
to: '[email protected]',
html: `
<h1>Welcome 🎉</h1>
<p>Thank you for signing up! Please verify your email address...</p>
`,
text: 'Thank you for signing up! Please verify your email address...',
});
if (error) {
return console.error('Error sending email:', error);
}
console.log(`Email sent ${data.id} 🎉`);