首页/AI 智能体外部交互/extension-email-raw
E

extension-email-raw

by @caffeinelabsv
4.6(120)

此技能支持发送包含多个收件人(To)、抄送人(Cc)和密送人(Bcc)的电子邮件。它简化了向不同接收方类型发送结构化邮件的流程,例如会议提醒,显著提升了沟通效率和准确性,减少了手动操作可能导致的错误,确保信息准确传达。

emailcommunicationmulti-recipientmessagingautomationGitHub
安装方式
npx skills add https://github.com/caffeinelabs/skills --skill extension-email-raw
compare_arrows

Before / After 效果对比

1 组
使用前

用户或开发者需要手动管理和输入多个收件人、抄送人及密送人地址,容易出错且耗时,尤其是在需要区分不同接收方角色时,增加了邮件发送前的检查和确认工作量。

使用后

该 Skill 自动化了多收件人邮件的发送过程,通过结构化输入一次性处理 To、Cc、Bcc 地址,大幅减少了手动操作时间,降低了因地址输入错误导致的沟通风险,确保邮件准确送达。

SKILL.md

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);
      };
    };
  };
};

用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价

统计数据

安装量27.4K
评分4.6 / 5.0
版本
更新日期2026年10月23日
对比案例1 组

用户评分

4.6(120)
5
37%
4
43%
3
13%
2
5%
1
2%

为此 Skill 评分

0.0

兼容平台

🤖claude-code

时间线

创建2026年6月25日
最后更新2026年10月23日
🎁 Agent 知识卡片
调研问卷