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