DB2, how to send an email from a stored procedure?

I have a scenario where I need to send an email from my stored procedure to DB2.

However, I have not been able to figure out yet, except using the Task Center or Query Patroller.

Can someone tell me some indications of this? I do not want to do this from any other language. Thanks.

+3
source share
2 answers

With 9.7, you can use the built-in UTL_MAIL or UTL_SMTP packages.

+3
source

DB2 has nothing built into DB2, for example, xp_sendmail in SQL Server.

(Java, ++), API .

, , Java.

+1

Source: https://habr.com/ru/post/1714956/


All Articles