MCPcopy Create free account
hub / github.com/pollinations/pollinations / sendPasswordResetEmail

Function sendPasswordResetEmail

apps/micro/examples/brevo-example.js:62–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60
61// Example 3: Send password reset email
62async function sendPasswordResetEmail() {
63 try {
64 console.log('📧 Sending password reset email via Brevo...');
65
66 const result = await emailService.sendPasswordResetEmail(
67 'user@example.com',
68 'Jane Smith',
69 'https://pollinations.ai/reset-password?token=abc123',
70 'Pollinations AI',
71 '1 hour'
72 );
73
74 if (result.success) {
75 console.log('✅ Password reset email sent successfully!', result.messageId);
76 } else {
77 console.error('❌ Failed to send password reset email:', result.error);
78 }
79 } catch (error) {
80 console.error('❌ Error:', error.message);
81 }
82}
83
84// Example 4: Send to multiple recipients
85async function sendBulkEmail() {

Callers 1

runExamplesFunction · 0.70

Calls 3

logMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected