Have to send email from oracle apex
using APEX_MAIL.SEND()
method.
I am using the code:
BEGIN
apex_mail.send(p_to => '[email protected]'/*l_to_addr*/,
p_from => '[email protected]'/*l_from_addr*/,
p_bcc => l_bcc_addr,
p_subj => l_mail_sub,
p_body => 'Service Request ' || :mail_body ||
'Note:- This is a system generated Email. Please DO NOT REPLY to it.');
apex_mail.push_queue;
EXCEPTION
when others then
INSERT INTO send_mail_error_test VALUES ('Send_mail',systimestamp,:service_request_id||'-err:'||seq_service_req_error_id.NEXTVAL);
COMMIT;
END;
*** all the variables contain correct values
Working with a database and that database has ACL(access control list) access
In apex administrative services, Configured instance settings for email as hostname, port , email provisioning enabled.
UTL_SMTP package is installed
From the same process, at the same point of control flow a code to send mail using utl_Smtp is working fine, though that apex_mail.send() is not working.
That
apex_mail.send()
is not giving any error or exception, but i am not recieving email from it.Have one confusion, got some solutions like that, '
APEX_040200
' should have been added toACL
. But the database I am using and implementing the code on it, say 'apex_user
' is already added toACL
. Even now do I have to add 'APEX_040200
' or 'APEX_050200
' toACL
?
can anyone help me out and give me a fruitful solution? I am using apex 5.0.2.00.07.