SuperAPI AI 工具集

fastmail

办公与效率

查看项目

更新于 10-16 10:05

技能介绍

用途

Fastmail 集成用于通过 Fastmail 的 SMTP 服务发送电子邮件。

主要能力

  • 通过 Fastmail SMTP 发送邮件。
  • 支持发送纯文本正文的邮件。
  • 支持发送 HTML 格式正文的邮件。

使用方式

获取应用密码

在 Fastmail 中获取应用密码:Settings → Privacy & Security → App Passwords → New。

存储凭据

执行以下命令创建配置目录并写入凭据:

mkdir -p ~/.config/fastmail
echo 'you@fastmail.com:xxxx-app-password-xxxx' > ~/.config/fastmail/creds
chmod 600 ~/.config/fastmail/creds

发送邮件

发送纯文本邮件:

python3 /home/boss/.openclaw/workspace/skills/fastmail/scripts/send.py \
  --to recipient@example.com \
  --subject "Hello" \
  --body "Email body here"

发送 HTML 邮件:

python3 /home/boss/.openclaw/workspace/skills/fastmail/scripts/send.py \
  --to recipient@example.com \
  --subject "Hello" \
  --body "<h1>HTML</h1><p>Content</p>" \
  --html

适用场景

需要通过 Fastmail 账户自动或脚本化发送邮件的场景,例如发送通知、测试邮件或 HTML 格式的邮件内容。

限制

使用前需完成 Fastmail 应用密码的设置;其他功能、收费、价格、平台支持及限制信息暂未提供。