<reponame>be8386aaa/geeks<filename>Node-JS Projects/queuenode/src/app/jobs/RegistrationMail.js<gh_stars>0import Mail from "../lib/Mail";

export default {
  key: "RegistrationMail",
  async handle({ data }) {
    const { user } = data;

    await Mail.sendMail({
      from: "Queue Test <ychag@example.com>",
      to: `${user.name} <${user.email}>`,
      subject: "User registration",
      html: `Hello, ${user.name}, welcome to the queuing system.`,
    });
  },
};
