extension-email-raw

द्वारा caffeinelabs

एकाधिक प्राप्तकर्ताओं, कार्बन कॉपी और ब्लाइंड कार्बन कॉपी पतों के साथ ईमेल भेजें।

npx skills add https://github.com/caffeinelabs/skills --skill extension-email-raw

Email — Raw Multi-Recipient

Raw multi-recipient email extension for Caffeine AI.

Overview

This skill adds support for sending emails with multiple to, cc, and bcc recipients. Not suitable for bulk service emails (recipients see each other).

Backend

This extension is for sending an email with support for multiple to, cc and bcc addresses.

  • This should NOT be used for sending service emails to multiple users because each recipient will see all the other recipients listed which would typically be a breach of user privacy.

For sending an email

  • This extension depends on the extension-email for sending emails.
  • Use the sendRawEmail function.
  • It returns a SendResult which is #ok if the email is sent successfully otherwise #err(error) with the error text.
  • There can be a maximum of 50 recipients in total
  • Each recipient receives the same email
module {
  public type SendResult = {
    #ok;
    #err : Text;
  };

  public func sendRawEmail(
    fromUsername : Text,
    to : [Text],
    cc : [Text],
    bcc : [Text],
    subject : Text,
    htmlBody : Text,
  ) : async SendResult;
};

Example usage for sending an email reminder to meeting attendees.

import Runtime "mo:core/Runtime";
import EmailClient "mo:caffeineai-email/emailClient";

actor {
  public func sendMeetingReminder(
    meetingSubject : Text,
    meetingTime : Text,
    confirmedAttendeeEmails : [Text],
    tentativeAttendeeEmails : [Text],
  ) : async () {
    let result = await EmailClient.sendRawEmail(
      "no-reply",
      confirmedAttendeeEmails,
      tentativeAttendeeEmails,
      [],
      meetingSubject,
      "Reminder the meeting will start at " # meetingTime,
    );

    switch (result) {
      case (#ok) {};
      case (#err(error)) {
        Runtime.trap("Failed to send meeting reminder email: " # error);
      };
    };
  };
};

Upgrading from the previous version

An app built with caffeineai-email 0.4.x re-pins with mops add caffeineai-email@0.5.0. sendRawEmail keeps its signature. 0.5.0 compiles with ic 5.0.0, where 0.4.x fails. In an app that pins ic 5.0.0, its gateway calls use outcall pricing version 2; on ic 4.2.0 they keep version 1.

An app built with caffeineai-email 0.3.x re-pins with mops add caffeineai-email@0.4.0. sendRawEmail keeps its signature. Every send now goes through the mail gateway with the settings the platform injects on every deploy (INTEGRATIONS_GATEWAY_URL / INTEGRATIONS_GATEWAY_API_KEY); the transport canister and INTEGRATIONS_CANISTER_ID are no longer used, and a send without those settings returns #err instead of falling back.

An app built with caffeineai-email 0.2.x re-pins with mops add caffeineai-email@0.3.0. sendRawEmail keeps their signatures; every send now carries an idempotency key, so a retried outcall is sent and charged once. Apps that use verification or marketing email follow the upgrade sections of those skills.

caffeinelabs की और Skills

connector-googlemail
caffeinelabs
Use the `googlemail-client` mops package whenever the user asks the canister to send email, compose a draft, list or read Gmail messages, or fetch the authenticated user's Gmail profile. The package wraps the Gmail REST API v1 at `https://gmail.googleapis.com` via outbound HTTPS calls.
communicationapiproductivity
extension-authorization
caffeinelabs
भूमिका-आधारित अभिगम नियंत्रण वाली प्राधिकरण प्रणाली। उन सभी ऐप्स के लिए आवश्यक है जो व्यक्तिगत या अभिगम-प्रतिबंधित डेटा प्रबंधित करते हैं।
securityapidevelopment
extension-camera
caffeinelabs
वेब-कैमरा समर्थन।
mediavideoimage
extension-core-infrastructure
caffeinelabs
कोर इन्फ्रास्ट्रक्चर जो बैकएंड कनेक्शन कॉन्फ़िगरेशन, स्टोरेज क्लाइंट और React ऐप एंट्री पॉइंट प्रदान करता है।
developmentapidevops
extension-data-viewer
caffeinelabs
Admin-only paginated viewer for stable canister state. Use whenever the user asks for a viewer, dashboard, debug panel, or admin browse over backend data — users, items, orders, logs, or any stable Map/Set/Array/VarArray/List/Stack/Queue. Pre-installed in every Caffeine app via the `caffeineai-data-viewer` mops package; this skill explains what it does and how to keep using it correctly.
developmentdatabasedata-analysis
extension-email
caffeinelabs
सेवा/लेन-देन संबंधी ईमेल भेजने के लिए समर्थन। मार्केटिंग ईमेल या सत्यापन ईमेल भेजने के लिए इसका उपयोग न करें।
extension-email-calendar-events
caffeinelabs
ईवेंट/मीटिंग आयोजित करने और ईमेल द्वारा निमंत्रण भेजने का समर्थन।
productivitycommunicationproject-management
extension-email-marketing
caffeinelabs
ग्राहकों को अनसब्सक्राइब लिंक के साथ वैयक्तिकृत मार्केटिंग ईमेल भेजें।
marketingcommunication