开发者
三步,从零到送达第一封邮件。
- 01
安装
选择一个开发库,或直接使用 HTTP。
npm install https://tsmart.ai/sdk/node/tsmart-sdk-1.2.0.tgz pip install https://tsmart.ai/sdk/python/tsmart-1.2.0-py3-none-any.whl - 02
设置密钥
在您的工作区创建 API 密钥并导出。
export TSMART_API_KEY=ts_xxxxxxxx_… - 03
发送
从您已验证的域名发送。
await tsmart.emails.send({ from: "[email protected]", to: ["[email protected]"], subject: "Hello", text: "It works.", });