xpeditis2.0/apps/backend/test-carrier-email.js
David d65cb721b5
Some checks are pending
CD Production (Hetzner k3s) / Promote Images (preprod → prod) (push) Waiting to run
CD Production (Hetzner k3s) / Deploy to k3s (xpeditis-prod) (push) Blocked by required conditions
CD Production (Hetzner k3s) / Smoke Tests (push) Blocked by required conditions
CD Production (Hetzner k3s) / Deployment Summary (push) Blocked by required conditions
CD Production (Hetzner k3s) / Notify Success (push) Blocked by required conditions
CD Production (Hetzner k3s) / Notify Failure (push) Blocked by required conditions
chore: sync full codebase from cicd branch
Aligns main with the complete application codebase (cicd branch).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-04 12:56:44 +02:00

30 lines
799 B
JavaScript

const nodemailer = require('nodemailer');
const transporter = nodemailer.createTransport({
host: 'sandbox.smtp.mailtrap.io',
port: 2525,
auth: {
user: '2597bd31d265eb',
pass: 'cd126234193c89'
}
});
console.log('🔄 Tentative d\'envoi d\'email...');
transporter.sendMail({
from: 'noreply@xpeditis.com',
to: 'test@example.com',
subject: 'Test Email depuis Portail Transporteur',
text: 'Email de test pour vérifier la configuration'
}).then(info => {
console.log('✅ Email envoyé:', info.messageId);
console.log('📧 Response:', info.response);
process.exit(0);
}).catch(err => {
console.error('❌ Erreur:', err.message);
console.error('Code:', err.code);
console.error('Command:', err.command);
console.error('Stack:', err.stack);
process.exit(1);
});