Skip to content

Assistance needed: Email delivery issues in Oracle APEX 24.2 on AWS RDS (19c)

0

Hello,

I am currently able to send emails using Google SMTP and AWS SES via PL/SQL (DBMS_MAIL/UTL_SMTP). However, I am encountering an issue where emails are not being sent specifically within my Oracle APEX application.

My environment details are as follows:

Database: Amazon RDS for Oracle 19c

Oracle APEX Version: 24.2.0

If anyone has experience configuring or troubleshooting the email functionality in an Oracle APEX environment on AWS RDS, I would greatly appreciate your guidance.

What are the necessary steps or configurations required to get the email service working in APEX?

Thank you in advance for your help.

asked a year ago239 views

1 Answer
0

When troubleshooting email delivery issues in Oracle APEX 24.2 on AWS RDS (Oracle 19c), there are several key considerations to address:

  1. Port 25 Restriction: AWS blocks outbound traffic on port 25 by default in AWS VPCs to prevent spam. This is likely the primary issue if your APEX application cannot send emails while your direct PL/SQL code can (possibly using alternative ports).

Options to resolve this include:

  • Request removal of the port 25 restriction by submitting a request to AWS Support using the "Request to remove email sending limitations" form. This process can take up to 48 hours.
  • Use alternative ports that aren't restricted, such as port 587 (TLS) or 465 (SSL).
  1. SMTP Server Configuration: Ensure your SMTP_OUT_SERVER parameter is properly configured for your Oracle RDS instance. You can set this at the session level or as a default using a DB parameter group:
ALTER SESSION SET smtp_out_server = 'mailserver.domain.com:587';
  1. UTL_MAIL Configuration: If you're using UTL_MAIL in APEX, verify that the UTL_MAIL option is enabled in your RDS option group and properly configured.

  2. APEX-Specific Configuration: Check that your APEX email settings are correctly pointing to the same SMTP server and using the appropriate authentication credentials that work in your PL/SQL tests.

  3. Alternative Approach: Consider using Amazon SES with ports 587 or 2587 instead of trying to use port 25. This is often more reliable within the AWS environment and doesn't require special permissions.

Since you mentioned that you can send emails using Google SMTP and AWS SES via PL/SQL, the issue might be specific to how APEX is configured to use these services. Ensure that the APEX application is using the same connection parameters and authentication details that work in your PL/SQL code.
Sources
RDS ORACLE local smtp | AWS re:Post
SMTP Issues on Website | AWS re:Post
Oracle UTL_MAIL - Amazon Relational Database Service
SMTP issue, not able to send out Email through the port | AWS re:Post

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.