hai,
I am trying to send mail with attachment but it is showing error as follows
PLS-00306: wrong number or types of arguments in call to 'ADD_ATTACHMENT' ORA-06550: PL/SQL: Statement ignored
This is the code I wrote
declare
l_id number;
begin
l_id := apex_mail.send (
p_to => :P2_TO,
p_from => :P2_FROM,
p_subj => :P2_SUBJECT,
p_body => :P2_BODY);
APEX_MAIL.ADD_ATTACHMENT (p_mail_id => l_id,
p_attachment => :P2_ATTACHMENT,
p_filename => :P2_FILENAME,
p_mime_type => :P2_MIME_TYPE
);
end;
Please kindly do help me in writing the code. Thanks in advance.