()
| 138 | |
| 139 | // Example 6: Verify Resend connection |
| 140 | async function verifyResendConnection() { |
| 141 | try { |
| 142 | console.log('🔍 Verifying Resend connection...'); |
| 143 | |
| 144 | const isConnected = await emailService.verifyConnection(); |
| 145 | |
| 146 | if (isConnected) { |
| 147 | console.log('✅ Resend connection verified successfully!'); |
| 148 | } else { |
| 149 | console.log('❌ Resend connection failed - check your API key'); |
| 150 | } |
| 151 | } catch (error) { |
| 152 | console.error('❌ Error verifying connection:', error.message); |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | // Run all examples |
| 157 | async function runExamples() { |
no test coverage detected