- Categories:
Notification functions (Integration Configuration)
EMAIL_ INTEGRATION_ CONFIG¶
Returns a JSON object that specifies the email notification integration, recipients, and subject line to use for an email notification. This is a helper function that you use to construct an integration configuration object for the SYSTEM$SEND_SNOWFLAKE_NOTIFICATION stored procedure.
语法
实参
'email_integration_name'要使用的电子邮件通知集成的名称。
'subject'电子邮件的主题。
主题长度不能超过 256 个字符。
array_of_email_addresses_for_to_line
array_of_email_addresses_for_cc_line
array_of_email_addresses_for_bcc_line要包含在邮件的“收件人:”、“抄送:”和“密送:”行中的电子邮件地址 ARRAYs。
You must specify email addresses of users in the current account. These users must verify their email addresses.
If the ALLOWED_RECIPIENTS property is set to a list of email addresses in the email notification integration, the email addresses must be in that list.
Call the ARRAY_CONSTRUCT function to construct each ARRAY.
Note
如果仅指定“密送:”行,则无法发送电子邮件通知。
返回
A JSON-formatted string that specifies a notification integration for the SYSTEM$SEND_SNOWFLAKE_NOTIFICATION stored procedure to send.
For example, suppose that you pass in the notification integration name 'my_email_int' with the following subject line and
list of email addresses for the “To:” line:
该函数会返回以下 JSON 格式的字符串:
The following example sends the same notification with an additional list of email addresses for the “Cc:” line. Note that this
example passes NULL for the “Bcc:” addresses to exclude the bccAddress property from the returned object.
该函数会返回以下 JSON 格式的字符串:
以下示例发送相同的通知,其中包含“密送:”行的其他电子邮件地址列表:
该函数会返回以下 JSON 格式的字符串:
示例
See Using SYSTEM$SEND_SNOWFLAKE_NOTIFICATION to send notifications.