Sending Mail | External Stored Procedure Examples | Teradata Vantage - Sending Mail - Advanced SQL Engine - Teradata Database

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
rin1593638965306.ditamap
dita:ditavalPath
rin1593638965306.ditaval
dita:id
B035-1147
lifecycle
previous
Product Category
Teradata Vantageā„¢

This example shows how to send mail on Linux by calling sendmail in an external stored procedure. It is very primitive and does no error checking as good programming practices should. But it does show how relatively easy it is to get an external stored procedure to do something useful. The procedure can be called from within a trigger action body if desired.

Because the external stored procedure does I/O, the definition includes the EXTERNAL SECURITY clause.