Skip to content

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 ​

emailSendSend 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:

meta ​

admin✓
deffunc:emailSend
isfunc
liblib:email
nameemailSend

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:emailSendAsync ​

emailSendAsync(recipients, subject, content, attachments: null) ​


meta ​

admin✓
deffunc:emailSendAsync
isfunc
liblib:email
nameemailSendAsync

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function