()
| 111 | |
| 112 | // Example 5: Verify Brevo connection |
| 113 | async function verifyBrevoConnection() { |
| 114 | try { |
| 115 | console.log('🔍 Verifying Brevo connection...'); |
| 116 | |
| 117 | const isConnected = await emailService.verifyConnection(); |
| 118 | |
| 119 | if (isConnected) { |
| 120 | console.log('✅ Brevo connection verified successfully!'); |
| 121 | } else { |
| 122 | console.log('❌ Brevo connection failed - check your API key and sender email'); |
| 123 | } |
| 124 | } catch (error) { |
| 125 | console.error('❌ Error verifying connection:', error.message); |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | // Run all examples |
| 130 | async function runExamples() { |
no test coverage detected