外观
lib-email 库参考
原文: https://finproducts.atlassian.net/wiki/spaces/JIDD3/pages/34793521411/FIN+5.3.1+lib-email 中文整理基于 FIN 5.3.1
导读: 通过SMTP发送外发邮件
以下为 API 参考,保留英文以便对照源码;目录已列出(英文标题便于检索);概述已尽量中译。
目录(导读)
- lib
- meta
- funcs
- def
- emailSend(recipients, subject, content, attachments: null)
- emailSendAsync(recipients, subject, content, attachments: null)
概述(中译)
通过SMTP发送外发邮件
API 正文(英文)
funcs
| emailSend | Send an email synchronously |
| emailSendAsync |
def
func:emailSend
emailSend(recipients, subject, content, attachments: null)
Send an email synchronously:
- recipients: one of the following:
- Str email address for "to"
- List of Str email addresses for "to"
- Dict with "to", "cc", or "bcc" of Str or Str[]
- subject: Str subject text
- content: Str text for body. If the content begins with "<html>", then it is send as "text/html", otherwise as "text/plain"
- attachments: any one, or list of the following types will be included as file attachments:
- file io handle
Refto an App report will be attached as a PDF fileDictof an App report record will be attached as a PDF file- export request dicts
meta
| admin | ✓ |
| def | func:emailSend |
| is | func |
| lib | lib:email |
| name | emailSend |
supertypes
| feature | Feature namespace of definitions formatted as feature:name |
| func | Axon function |
def
func:emailSendAsync
emailSendAsync(recipients, subject, content, attachments: null)
meta
| admin | ✓ |
| def | func:emailSendAsync |
| is | func |
| lib | lib:email |
| name | emailSendAsync |
supertypes
| feature | Feature namespace of definitions formatted as feature:name |
| func | Axon function |