Implemented email verification

This commit is contained in:
2024-04-12 13:52:16 +03:00
parent 78107d4ec7
commit b1ad7b5c3e
51 changed files with 604 additions and 213 deletions

View File

@@ -1,23 +1,14 @@
'use client'
import type { Metadata } from 'next'
import mailer from '@/lib/mailer'
export const metadata: Metadata = {
title: 'key',
description: '...',
}
export default function AboutPage () {
const onClick = () => {
mailer({
to: [
{ name: 'Yevhen', address: 'it@amok.space' },
{ name: 'Євген', address: 'yevhen.odynets@gmail.com' },
],
subject: 'ПОСИЛЕННЯ МОБІЛІЗАЦІЇ В УКРАЇНІ',
html: `<div>Коли Рада <strong>розгляне</strong> законопроєкт про мобілізацію у <del>другому</del> читанні</div>`,
}).catch(console.error)
}
const AboutPage = () => {
return <>About
<hr/>
</>
}
return (
<button onClick={onClick}
className="bg-transparent hover:bg-blue-500 text-blue-700 font-semibold hover:text-white py-2 px-4 border border-blue-500 hover:border-transparent">
sendmail
</button>
)
}
export default AboutPage