DECLARE
R NUMBER;
CUS_EMAIL VARCHAR2(100);
CUS_NAME VARCHAR2(100);
P12_START NUMBER;
P12_END NUMBER;
EMAIL_START NUMBER;
EMAIL_END NUMBER;
BEGIN
EMAIL_START := :P5_START;
EMAIL_END := :P5_END;
FOR i IN EMAIL_START..EMAIL_END
LOOP
SELECT R,CUSTOMER_NAME,CUSTOMER_EMAIL INTO R,CUS_NAME,CUS_EMAIL FROM
(SELECT CUSTOMER_ID,CUSTOMER_NAME,CUSTOMER_EMAIL,CUSTOMER_STATE, ROW_NUMBER() OVER
(ORDER BY CUSTOMER_STATE) R FROM CUSTOMERS WHERE UPPER(CUSTOMER_STATE) = UPPER(:P5_STATE))
WHERE R = i;
APEX_MAIL.SEND(
p_to => CUS_EMAIL ,
p_from => 'js@buxomcurvy.com',
p_subj => :P5_SUBJECT,
p_body => 'Please Check email.',
p_body_html => 'Dear' || ' '|| CUS_NAME || ',' || :P5_BODY
);
APEX_MAIL.PUSH_QUEUE;
END LOOP;
END;
No. | Subject |
---|---|
Notice | Certification Oracle SQL Developer |
114 | 5.6.2 Granting Connect Privileges Prior to Oracle Database 12c |
113 | lsnrctl start |
112 | Network access denied by access control list (ACL) in Oracle Database 11g |
» | email - PL/SQL |
110 | MODIFY |
109 | CREATE |
108 | PORT CHANGE 8080 --> 8081 |
107 | About AMAZON |
106 | BUXOMCURVY |
105 | WHDR(LAYOUT) CODE |
104 | CREATE?MODIFY |
103 | SEND GRID |
102 | MAILJET |
101 | DATA BASE LINK |
100 | dbms_network_acl_admin |
99 | Samsung-NP300E5E-DDR3 |
98 | Config |
97 | APEX_MAIL.SEND |
96 | grant execute on UTL_TCP |
95 | Email SMTP |