import { sendInvitationEmail } from '../src/lib/email';

const token = '6f974b1da9fae95f74bbcd2419df589730979ac945aeaa5413021c00311b5165';
const url = 'http://localhost:3000/accept-invite?token=' + token;

async function main() {
  console.log('Sending styled invitation email...');
  console.log('To: matt.ciaccio@gmail.com');
  console.log('URL:', url);

  try {
    await sendInvitationEmail(
      'matt.ciaccio@gmail.com',
      'Matt Ciaccio',
      url,
      'APPLICANT',
      72
    );
    console.log('SUCCESS: Styled invitation email sent!');
  } catch (err: any) {
    console.error('FAILED:', err.message || err);
  }
  process.exit(0);
}

main();
