import env from '#start/env';
import { defineConfig, transports } from '@adonisjs/mail';
const smtpPort = env.get('SMTP_PORT');
const smtpSecure = smtpPort === 465;
const mailConfig = defineConfig({
    default: 'smtp',
    mailers: {
        smtp: transports.smtp({
            host: env.get('SMTP_HOST'),
            port: smtpPort,
            secure: smtpSecure,
            auth: {
                type: 'login',
                user: env.get('SMTP_USERNAME'),
                pass: env.get('SMTP_PASSWORD'),
            },
        }),
    },
});
export default mailConfig;
//# sourceMappingURL=mail.js.map