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: '[email protected]', pass: '...' }, }); const info: SentMessageInfo = await transporter.sendMail({ from: '"name :ghost:" <[email protected]>', // sender address to: '[email protected]', // list of receivers subject: `HELLO!? ${recipientName}`, // Subject line html: email });}main().catch(console.error);