APEX Mail Server Setup for Reset Password Functionality
Oracle APEX requires a properly configured Mail Server (SMTP) to send emails, including password reset links. Below is a step-by-step guide to configure APEX Mail Server and enable password reset emails.
1. Verify APEX Mail Configuration
First, check if your APEX environment has email sending enabled.
Run the following query in SQL Developer or SQL*Plus:
If this returns no value, then SMTP is not configured.
2. Configure SMTP in APEX
Set up the SMTP server details using the following command:
If authentication is required, configure the SMTP username and password:
Optionally, set the SMTP port (default is 25
, but some servers use 587
for TLS or 465
for SSL):
3. Test Email Sending in APEX
To confirm that emails can be sent, run:
Check for email processing errors:
If emails are stuck, run:
4. Enable Reset Password Functionality
To allow password reset emails, ensure that APEX authentication schemes are set correctly:
- Navigate to APEX Application Builder.
- Go to Shared Components > Authentication Schemes.
- Edit your authentication scheme (e.g., APEX Accounts or Custom).
- Under Lost Password settings, enable Reset Password.
- Set Reset Password Link Expiration (e.g., 24 hours).
- Save changes.
5. Final Testing
Request a Password Reset
- Go to the APEX login page.
- Click "Forgot Password?".
- Enter your email.
- Check if the email is received.
Check APEX Mail Logs
If no email is received, check the logs:
Troubleshooting
Check SMTP Connectivity:
If the connection fails, verify firewall rules.
Check SMTP Authentication & Ports:
Ensure the mail server allows relay and authentication.Check APEX Mail Queue Processing:
Post a Comment
Post a Comment