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

Function sendWelcomeEmail

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

Source from the content-addressed store, hash-verified

39
40// Example 2: Send welcome email using template
41async function sendWelcomeEmail() {
42 try {
43 console.log('📧 Sending welcome email via Brevo...');
44
45 const result = await emailService.sendWelcomeEmail(
46 'newuser@example.com',
47 'John Doe',
48 'Pollinations AI'
49 );
50
51 if (result.success) {
52 console.log('✅ Welcome email sent successfully!', result.messageId);
53 } else {
54 console.error('❌ Failed to send welcome email:', result.error);
55 }
56 } catch (error) {
57 console.error('❌ Error:', error.message);
58 }
59}
60
61// Example 3: Send password reset email
62async function sendPasswordResetEmail() {

Callers 1

runExamplesFunction · 0.70

Calls 3

logMethod · 0.80
errorMethod · 0.80
sendWelcomeEmailMethod · 0.65

Tested by

no test coverage detected