File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import morgan from 'morgan'
55import routes from './routes/index.js'
66import { errorHandler } from './middlewares/errorHandler.js'
77import { env } from './config/env.js'
8- import { sendEmail } from './mails/mailer.js'
98
109const app = express ( )
1110
@@ -17,20 +16,6 @@ app.use(morgan('dev'))
1716app . use ( express . json ( ) )
1817app . use ( express . urlencoded ( { extended : false } ) )
1918
20- // Debug SMTP (temporal)
21- app . get ( '/debug/send-mail' , async ( req , res ) => {
22- try {
23- await sendEmail ( {
24- to : env . EMAIL , // o tu correo de prueba
25- subject : 'Test desde Render (SSL 465)' ,
26- html : '<p>Si ves este correo, SMTP funciona en producción</p>'
27- } )
28- res . json ( { message : 'Correo enviado' } )
29- } catch ( err ) {
30- res . status ( 500 ) . json ( { message : 'Error enviando correo' , error : err . message } )
31- }
32- } )
33-
3419// Routes
3520app . use ( '/' , routes )
3621
You can’t perform that action at this time.
0 commit comments