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

Function sendPasswordResetEmail

apps/micro/examples/resend-example.js:61–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

runExamplesFunction · 0.70

Calls 3

logMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected