19 Sending Email from APEX
To send email from APEX in RDS, provision an Oracle OCI SMTP server in a customer-owned OCI tenancy. Only Oracle’s OCI SMTP server is supported. For provisioning details, see Email Delivery.
Configure Email Settings in RDOC
Open Email Settings in the Retail DB Ops Console (RDOC) to enter the SMTP host address and port, SMTP username and password, and sender address. Select Save Settings before using Validate Settings. Validation checks the settings already saved by RDOC; it does not save edits still on the form. If a password has already been saved, leave the password field blank to retain it or enter a replacement password.
After saving and validating the SMTP configuration, use Send Test Email to enter a recipient, subject, and message. This action uses the saved SMTP settings and does not save edits still on the configuration form. A message that says the test email was submitted for delivery confirms submission to the mail service, not arrival in the recipient mailbox. Check the recipient inbox to confirm delivery.
The Primary Notification Contact Email and Secondary Notification Contact Email addresses are configured on the RDOC Settings page described in Chapter 18. If both are blank, RDOC has no configured recipient for operational email notifications. SMTP configuration alone does not supply a recipient.
Sending from APEX Applications
Once SMTP settings are verified, APEX applications can use the APEX_MAIL package
to send messages. APEX_MAIL_QUEUE contains queued messages, and
APEX_MAIL_LOG records their disposition. See the
APEX_MAIL package documentation for details.
Figure 19-1 RDOC Email Settings Page with SMTP Configuration and Send Test Email Sections
