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

Function sendCustomEmail

apps/micro/examples/basic-usage.js:39–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37}
38
39async function sendCustomEmail() {
40 try {
41 console.log('Sending custom email...');
42
43 const result = await emailService.sendMail({
44 to: 'user@example.com',
45 subject: 'Hello from Micro Service!',
46 text: 'This is a test email from the micro service.',
47 html: '<h1>Hello from Micro Service!</h1><p>This is a test email from the micro service.</p>',
48 });
49
50 if (result.success) {
51 console.log('✅ Custom email sent successfully!', result.messageId);
52 } else {
53 console.error('❌ Failed to send custom email:', result.error);
54 }
55 } catch (error) {
56 console.error('❌ Error:', error.message);
57 }
58}
59
60async function verifyConnection() {
61 try {

Callers 1

mainFunction · 0.70

Calls 3

logMethod · 0.80
errorMethod · 0.80
sendMailMethod · 0.65

Tested by

no test coverage detected