Send Email for Multiple Recipients with attachment from Oracle Database
PLSQL Procedure. DECLARE i NUMBER := 1; j NUMBER := 1; p_to VARCHAR2 (100); lv_smtp_server VARCHAR2 (100) := 'qgbl-smtprelay.les.com'; lv_domain VARCHAR2 (100); lv_from VARCHAR2 (100) := 'Donot reply-ARS@les.com'; v_connection UTL_SMTP.connection; c_mime_boundary CONSTANT VARCHAR2 (256) := '--AAAAA000956--'; v_clob CLOB; ln_len INTEGER; ln_index INTEGER; ln_count NUMBER; ln_code VARCHAR2 (10); ln_counter NUMBER := 0; lv_instance VARCHAR2 (100); ln_cnt NUMBER; ld_date DATE; ld_msg VARCHAR2(100); name_array DBMS_SQL