A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.snowflake.com/en/sql-reference/sql/create-notification-integration-email below:

Website Navigation


CREATE NOTIFICATION INTEGRATION (email) | Snowflake Documentation

CREATE NOTIFICATION INTEGRATION (email)

Creates a new notification integration in the account or replaces an existing integration for sending email messages.

See also:

ALTER NOTIFICATION INTEGRATION (email) , DESCRIBE NOTIFICATION INTEGRATION , DROP INTEGRATION , SHOW NOTIFICATION INTEGRATIONS

Syntax
CREATE [ OR REPLACE ] NOTIFICATION INTEGRATION [ IF NOT EXISTS ] <name>
  TYPE = EMAIL
  ENABLED = { TRUE | FALSE }
  [ ALLOWED_RECIPIENTS = ( '<email_address>' [ , ... '<email_address>' ] ) ]
  [ DEFAULT_RECIPIENTS = ( '<email_address>' [ , ... '<email_address>' ] ) ]
  [ DEFAULT_SUBJECT = '<subject_line>' ]
  [ COMMENT = '<string_literal>' ]

Copy

Required parameters
name

String that specifies the identifier (i.e. name) for the integration; must be unique in your account.

In addition, the identifier must start with an alphabetic character and cannot contain spaces or special characters unless the entire identifier string is enclosed in double quotes (for example, "My object"). Identifiers enclosed in double quotes are also case-sensitive.

For more information, see Identifier requirements.

ENABLED = { TRUE | FALSE }

Specifies whether to initiate operation of the integration or suspend it.

TYPE = EMAIL

Specifies that the integration creates an interface between Snowflake and a third-party email service.

Optional parameters
ALLOWED_RECIPIENTS = ( 'email_address' [ , ... 'email_address' ] )

(For TYPE = EMAIL) A comma-separated list of quoted email addresses that can receive notification emails from this integration.

You must specify email addresses of users in the current account. These users must verify their email addresses.

The maximum number of email addresses that you can specify is 50.

If you omit this parameter, you can send email notifications to any verified email address in the current account.

DEFAULT_RECIPIENTS = ( 'email_address' [ , ... 'email_address' ] )

Specifies the list of default recipients for messages sent with this integration. Use a comma-separated list of quoted email addresses to specify the default recipients.

You must specify email addresses of users in the current account. These users must verify their email addresses.

To override the default recipients for a given message, use the EMAIL_INTEGRATION_CONFIG helper function when calling the SYSTEM$SEND_SNOWFLAKE_NOTIFICATION stored procedure.

DEFAULT_SUBJECT = 'subject_line'

Specifies the default subject line for messages sent with this integration.

The subject cannot exceed 256 characters in length.

Default: ‘Snowflake Email Notification’

To override the default subject line for a given message, use the EMAIL_INTEGRATION_CONFIG helper function when calling the SYSTEM$SEND_SNOWFLAKE_NOTIFICATION stored procedure.

COMMENT = 'string_literal'

String (literal) that specifies a comment for the integration.

Default: No value

Access control requirements

A role used to execute this operation must have the following privileges at a minimum:

Privilege

Object

Notes

CREATE INTEGRATION

Account

Only the ACCOUNTADMIN role has this privilege by default. The privilege can be granted to additional roles as needed.

For instructions on creating a custom role with a specified set of privileges, see Creating custom roles.

For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.

Usage notes Examples

See Sending email notifications.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4