import nodemailer from "nodemailer";import type {Transporter, SentMessageInfo} from "nodemailer";import Email from "./Email";import { raw } from "hono/html";async function main() { const recipientName: string = "name"; const email: string = raw(<Email name={recipientName}/>).toString(); // nodemailer expects plain string console.log(email); const transporter: Transporter = nodemailer.createTransport({ host: 'smtp.yourhost.ch', port: 465, secure: true, // 465 or 587 auth: { user: 'your@email.com', pass: '...' }, }); const info: SentMessageInfo = await transporter.sendMail({ from: '"name :ghost:" <your@email.com>', // sender address to: 'to@email.com', // list of receivers subject: `HELLO!? ${recipientName}`, // Subject line html: email });}main().catch(console.error);