Sending Contact Requests

Chapter 2:

Step 2 - Use Nodemailer to Send an Email

To send emails, the sendEmail function in SSK-Pro allows you to send emails through your configured SMTP server.

await sendEmail({
  to: 'recipient@example.com',
  from: 'noreply@yourdomain.com',
  subject: 'Test Email',
  text: 'This is a test email.',
})

This function is pre-configured to use the email server defined in your environment variables. You can customize the email’s recipient, sender, subject, and body content.

Last updated