File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,25 @@ import { env } from '../config/env.js'
33
44// Creamos el transportador con la configuración de Gmail
55const transporter = nodemailer . createTransport ( {
6+ host : "smtp.gmail.com" ,
7+ port : 465 ,
8+ secure : true , // true para puerto 465, false para otros
9+ auth : {
10+ user : env . EMAIL ,
11+ pass : env . GOOGLE_APP_PASSWORD ,
12+ } ,
13+ tls : {
14+ rejectUnauthorized : false // Esto ayuda a evitar bloqueos de certificados en Render
15+ }
16+ } ) ;
17+
18+ /*const transporter = nodemailer.createTransport({
619 service: 'gmail',
720 auth: {
821 user: env.EMAIL,
922 pass: env.GOOGLE_APP_PASSWORD, // Aquí irá tu código de 16 letras
1023 },
11- } ) ;
24+ });*/
1225
1326export const sendEmail = async ( { to, subject, html } ) => {
1427 const mailOptions = {
You can’t perform that action at this time.
0 commit comments