Skip to Main Content
  • Questions
  • How can I register my SMTP service in Oracle Apex?


Question and Answer

Connor McDonald

Thanks for the question, Edisson.

Asked: January 13, 2022 - 8:19 pm UTC

Last updated: January 24, 2022 - 2:17 am UTC

Version: 21.1

Viewed 100+ times

You Asked

In the company where I work, we have the services of JD Edwards and Orchestrator Studio, but we are using APEX for fast applications. The problem is that we have not managed to use the JD Edwards SMTP in APEX or an external one to test that the apex_mail.send() function works and so far we have not succeeded, and we watched videos and followed the steps and nothing and the documentation offered by Oracle is not entirely clear even confusing that you have to do, another thing we tried was to create a service in Orchestrator Studio and it works with JS the drawback is that the code is on the client side and not the server and the alternative was to use UTL_HTTP or apex_web_service. make_rest_request() and neither as I read that UTL_HTTP has some limits with apex and apex_web_service.make_rest_request() blocks the service because the URL is not secure.

I have read most of the forum and nothing I can do to make it send APEX mails because it really depends on a database developer to do that and I have been using this tool for a very short time. I do not know if you could help me which are the steps I must follow to be able to send mails with APEX as in Cloud and in my local machine (localhost).

Sources consulted:

and Connor said...

I'm not entirely sure I understand exactly the requirement you are trying to meet, but I'm going to assume the aim (at least initially) is just to send an email from APEX.

For that, the best resource out of the ones you've listed is Tim's video.

Can you post here (as a review) what you've done for each of the steps in the video (anonymising details where appropriate) so we can see what you've tried/done, and then we'll try assist more, ie

- the APEX instance settings you've done
- wallet
- network ACL
- anonymous block in SQLcl/SQLPlus you've run to test mail


  (1 rating)


Steps to follow

Edisson Lopez, January 20, 2022 - 10:16 pm UTC


1. One of my clients has JD Edwards and implemented Apex(i believe is using weblogic) and it is necessary to send mails using Apex to an application, I already notified to infrastructure department to watch the video and to follow the steps.
- wallet (I saw a post about what the dba has to do to configure it, but it looks complex, please send me documentation to refer to)
- network ACL(please send me documentation to refer to)

2. I have a free instance of Apex in Cloud and what I understand the wallet is already configured. But I don't know if the same process of the video applies.

3. I have a rest service for sending emails with javascript, due to vulnerability issues. How I can implement this consumption of my rest service in apex with PL/SQL?

Please check following and more information:

Connor McDonald
January 24, 2022 - 2:17 am UTC


Tim's video is based on an existing blog post of his

which walks through the exact commands to run. However, I generally recommned that people should just install APEX ... even if they never plan to use it, and then just use APEX_MAIL instead.


For autonomous, we preload common certificates. There's a few setup steps to do


Manage Instance -> Security -> HTTP Protocol -> Require Outbound HTTPS -> No.

But for obvious reasons we don't recommend that

More to Explore


Keep your APEX skills fresh by attending their regular Office Hours sessions.