Implemented email verification
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user