mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-26 10:31:10 -04:00
17 lines
442 B
TypeScript
Executable File
17 lines
442 B
TypeScript
Executable File
import {debug} from 'common/logger'
|
|
|
|
import {sendTestEmail} from './helpers'
|
|
|
|
if (require.main === module) {
|
|
const email = process.argv[2]
|
|
if (!email) {
|
|
console.error('Please provide an email address')
|
|
debug('Usage: ts-node send-test-email.ts your@email.com')
|
|
process.exit(1)
|
|
}
|
|
|
|
sendTestEmail(email)
|
|
.then(() => debug('Email sent successfully!'))
|
|
.catch((error) => console.error('Failed to send email:', error))
|
|
}
|