How to add the field or a query to THE field of the process send e-mail Page

Hello world

Can you help me please?

How can I add a field or a query in "to THE" field of the process to send a Page in e-mail?

I use the 4.1.0.00.32 and oracle 10g Express Application.

Hi User11131067, please update your grip via profile to something more personal.

Here's how I did it:

DECLARE

l_body CLOB.

l_to VARCHAR2 (255);

BEGIN

l_body: =.

"Thank you for your interest in the APEX_MAIL package."

|| UTL_TCP. CRLF

|| UTL_TCP. CRLF;

l_body: = l_body | "Sincerely,". UTL_TCP. CRLF;

l_body: = l_body | "Dev APEX team | UTL_TCP. CRLF;

-Get the email addresses of administrators from point of harvest

WITH the admins

AS (SELECT person_tbl.email_address_txt,

ROW_NUMBER () OVER (ORDER BY email_address_txt) rn,

COUNT (*) NTC)

OF harvest_admin_tbl, person_tbl

WHERE harvest_admin_tbl.active_ind = 'Y' - use active Admins only

-Eliminate Admin Act

AND harvest_admin_tbl.internal_employee_id <> v_payroll_id

AND harvest_admin_tbl.internal_employee_id =

person_tbl.employee_ghrs_id)

-Concatenate addresses into a single string

SELECT LTRIM (SYS_CONNECT_BY_PATH (email_address_txt, ",") ",") catvalues

IN l_to

Admins

WHERE rn = NTC

START WITH rn = 1

CONNECT BY PRIOR rn = rn - 1;

apex_mail. Send (p_to => ' [email protected]', - change to your email address)

P_FROM-online l_to

p_body-online l_body,

p_subj => 'APEX_MAIL Package - message in plain text');

END;

/

Tags: Database

Similar Questions

Maybe you are looking for