()
| 155 | |
| 156 | // Run all examples |
| 157 | async function runExamples() { |
| 158 | console.log('🚀 Resend Email Service Examples\n'); |
| 159 | |
| 160 | await verifyResendConnection(); |
| 161 | console.log(''); |
| 162 | |
| 163 | await sendSimpleEmail(); |
| 164 | console.log(''); |
| 165 | |
| 166 | await sendWelcomeEmail(); |
| 167 | console.log(''); |
| 168 | |
| 169 | await sendPasswordResetEmail(); |
| 170 | console.log(''); |
| 171 | |
| 172 | await sendBulkEmail(); |
| 173 | console.log(''); |
| 174 | |
| 175 | await sendEmailWithAttachments(); |
| 176 | console.log(''); |
| 177 | |
| 178 | console.log('✨ All examples completed!'); |
| 179 | } |
| 180 | |
| 181 | // Only run if this file is executed directly |
| 182 | if (import.meta.url === `file://${process.argv[1]}`) { |
no test coverage detected