making smtp connection secure
This commit is contained in:
@@ -24,7 +24,7 @@ export default async function Page({ searchParams }) {
|
||||
const transporter = nodemailer.createTransport({
|
||||
host: process.env.CONTACT_HOST,
|
||||
port: process.env.CONTACT_PORT,
|
||||
secure: false, // true for 465, false for other ports
|
||||
secure: true, // true for 465, false for other ports
|
||||
auth: {
|
||||
user: process.env.CONTACT_USER,
|
||||
pass: process.env.CONTACT_PASSWORD,
|
||||
|
||||
Reference in New Issue
Block a user