Search This Blog

Tuesday, July 8, 2025

How Do I Troubleshoot SMTP Configuration Issues

 

Introduction
Setting up SMTP configuration in Oracle APEX is essential for enabling your applications to send emails reliably. However, issues can arise from incorrect settings, blocked ports, authentication errors, or provider-specific security policies. Troubleshooting these problems requires a methodical approach—verifying credentials, testing connectivity, and reviewing APEX logs—to identify and resolve the root cause efficiently.

  1. Authentication Errors:

    • Ensure that the SMTP username and password are correct.

    • If using Gmail or Yahoo, create an app-specific password if two-factor authentication is enabled.

  2. Connection Errors:

    • Check if the SMTP server is reachable.

    • Verify the correct port and encryption settings (SSL/TLS).

  3. Emails Not Being Delivered:

    • Ensure the From Address is approved for sending.

    • Check spam filters and email logs.

    • Review APEX_MAIL_QUEUE for pending messages:

SELECT mail_id, sent_date, to_address, status FROM APEX_MAIL_QUEUE;

  1. Gmail/Outlook Blocking the Email:

    • Enable "Less Secure Apps" if necessary (not recommended for production).

    • Ensure the SMTP credentials match the allowed senders in email provider settings.


Each mailbox provider has its own SMTP settings that must be configured correctly to allow Oracle APEX to send emails. By understanding the different configurations required for Gmail, Outlook, Yahoo, and OCI Email Delivery, developers can ensure smooth email transmission in their APEX applications.

Proper SMTP setup ensures that emails are delivered efficiently and securely, reducing the risk of failed or blocked messages.

Troubleshooting SMTP configuration issues in Oracle APEX involves checking several components that work together to enable successful email delivery. If APEX emails are not being sent or received, the cause could lie in incorrect settings, authentication failures, blocked network ports, or missing permissions. Below is a detailed, step-by-step approach to identify and resolve SMTP-related problems.

1. Verify Basic SMTP Settings in APEX
Navigate to Manage Instance > Instance Settings > Email or the corresponding workspace settings.

Check the following fields:

  • SMTP Host Address – Confirm this is the correct mail server address (e.g., smtp.gmail.com, smtp.office365.com, or smtp.email.us-ashburn-1.oci.oraclecloud.com).

  • SMTP Port – Common ports are 587 (TLS), 465 (SSL), or 25 (no encryption). Use the correct one as per your provider’s documentation.

  • Username – Ensure the full email address is entered if required.

  • Password – Confirm it's accurate and up to date. If using app-specific passwords (e.g., Gmail or Yahoo), use that instead of the account password.

  • Security (SSL/TLS) – Match the port you’ve chosen with the correct encryption type.

2. Test Network Connectivity
Ensure that the database server where Oracle APEX is installed can connect to the external SMTP server. From the OS or network layer:

  • Use tools like telnet smtp.server.com 587 or openssl s_client -connect smtp.server.com:465 (depending on your DB OS access).

  • If the server cannot reach the SMTP endpoint, work with your network or firewall team to open the necessary ports.

3. Review Error Logs and Views
Oracle APEX provides two important views for diagnosing mail issues:

  • APEX_MAIL_LOG – Displays results of email send attempts including success or failure messages.

  • APEX_MAIL_QUEUE – Shows pending emails that have not yet been pushed or sent.

Example SQL:

SELECT * FROM APEX_MAIL_LOG ORDER BY SENT_DATE DESC;
SELECT * FROM APEX_MAIL_QUEUE;

Look for error messages like:

  • Connection timed out

  • Authentication failed

  • Sender address rejected

  • Invalid credentials

4. Check Email Address Consistency
Make sure:

  • The p_from address used in APEX_MAIL.SEND matches the one approved by your SMTP provider.

  • Some providers require the sender email to be the same as the authenticated user (especially Gmail, OCI Email Delivery, Office 365).

  • Approved sender domains are set correctly if using OCI Email Delivery.

5. Test Sending an Email
Use the following PL/SQL block to test sending:

BEGIN
  APEX_MAIL.SEND(
    p_to       => 'your@email.com',
    p_from     => 'approved@sender.com',
    p_subj     => 'SMTP Test',
    p_body     => 'This is a test email sent from Oracle APEX.'
  );
  APEX_MAIL.PUSH_QUEUE;
END;

Then check APEX_MAIL_LOG to verify delivery status.

6. Re-check Authentication Requirements
Different SMTP providers have unique authentication rules:

  • Gmail – Requires OAuth or app passwords with 2FA enabled.

  • Office 365 – Requires SMTP AUTH to be enabled and MFA compliance.

  • OCI Email Delivery – Uses generated SMTP credentials and approved sender lists.

If these are not set up properly, authentication will fail even if credentials look correct.

7. Consider Message Content Filters
Some SMTP services reject emails with:

  • Empty subject or body

  • Invalid HTML formatting

  • Suspicious links or keywords

  • Unencoded attachments

Send a minimal test message first before testing formatted content or attachments.

8. Resend Failed Emails (Optional)
If emails failed to send due to a temporary issue (e.g., network failure), they may still be in the mail queue. Re-run:

BEGIN
  APEX_MAIL.PUSH_QUEUE;
END;

This manually pushes queued emails for retry.

9. Work with Your SMTP Provider
If errors persist and logs show rejections or blacklisting, contact your email provider. Share log excerpts to get insight into what’s going wrong (e.g., spam policy violations, throttling, IP restrictions).

Summary of Common Causes and Fixes

  • Wrong port or encryption → Match port 587 with TLS, 465 with SSL

  • Wrong password → Use an app-specific password if required

  • Unapproved sender → Use only verified or approved senders

  • Blocked port → Ensure firewall allows outbound SMTP connections

  • Authentication error → Confirm username/password and policy settings

With methodical checks of settings, network access, and log analysis, SMTP configuration issues in Oracle APEX can be quickly diagnosed and resolved, allowing your applications to send email reliably and securely.

Conclusion
SMTP configuration issues can prevent your APEX applications from delivering important emails, affecting workflows and user communication. By following a structured troubleshooting process—checking network access, verifying SMTP credentials, reviewing logs, and testing with known-good values—you can resolve common problems and restore email functionality. With a stable setup, you’ll ensure dependable email delivery across all your APEX applications.

How Do I Programatically Send Emails Using APEX_MAIL

Introduction
Sending emails programmatically using the APEX_MAIL package in Oracle APEX provides developers with a powerful tool for automating communication directly from their applications. Whether you're sending password resets, user notifications, or workflow alerts, APEX_MAIL allows you to compose and queue messages efficiently using PL/SQL. With just a few lines of code, you can trigger email events in response to user actions or background processes.

 

To programmatically send emails in Oracle APEX, you use the APEX_MAIL package, which provides a simple interface for composing, queuing, and sending email messages directly from PL/SQL. This is particularly useful for sending automatic notifications, confirmations, alerts, or custom messages in response to application events or background jobs.

Here is a detailed guide on how to send emails using APEX_MAIL:

1. Prerequisites and Setup
Before using APEX_MAIL, make sure the following are properly configured:

  • SMTP settings are defined in your APEX instance under Manage Instance > Instance Settings > Email.

  • The SMTP server, port, username, password, and encryption (SSL/TLS) must be valid.

  • The sender email address must match what is allowed by your SMTP provider (e.g., Oracle Cloud, Gmail, Office 365).

2. Basic Syntax of APEX_MAIL.SEND

The APEX_MAIL.SEND procedure is used to compose and queue an email:

BEGIN
  APEX_MAIL.SEND(
    p_to       => 'recipient@example.com',
    p_from     => 'sender@example.com',
    p_subj     => 'Your Subject Here',
    p_body     => 'This is a plain text message body.',
    p_body_html => '<p>This is an <strong>HTML-formatted</strong> message.</p>'
  );

  APEX_MAIL.PUSH_QUEUE;
END;
  • p_to: Email address of the recipient (required).

  • p_from: Email address of the sender (required and must match SMTP-approved sender).

  • p_subj: Subject line of the email.

  • p_body: Plain text content.

  • p_body_html: Optional HTML content. If this is provided, email clients will render it as a rich email.

  • APEX_MAIL.PUSH_QUEUE: Pushes the queued email immediately. If not called, the message may be delayed until the next scheduled mail process.

3. Sending to Multiple Recipients

You can send to multiple recipients by separating email addresses with a comma:

p_to => 'user1@example.com,user2@example.com'

4. Using CC and BCC

To add CC or BCC recipients, use APEX_MAIL.SEND overloaded parameters:

BEGIN
  APEX_MAIL.SEND(
    p_to       => 'to@example.com',
    p_from     => 'from@example.com',
    p_subj     => 'Subject',
    p_body     => 'Plain text body',
    p_cc       => 'cc@example.com',
    p_bcc      => 'bcc@example.com'
  );

  APEX_MAIL.PUSH_QUEUE;
END;

5. Adding Attachments

To add an attachment, use the APEX_MAIL.ADD_ATTACHMENT procedure after sending the mail and before pushing the queue:

DECLARE
  l_mail_id NUMBER;
BEGIN
  l_mail_id := APEX_MAIL.SEND(
    p_to       => 'user@example.com',
    p_from     => 'sender@example.com',
    p_subj     => 'File attached',
    p_body     => 'Here is the file.'
  );

  APEX_MAIL.ADD_ATTACHMENT(
    p_mail_id    => l_mail_id,
    p_attachment => UTL_RAW.CAST_TO_RAW('This is file content'),
    p_filename   => 'example.txt',
    p_mime_type  => 'text/plain'
  );

  APEX_MAIL.PUSH_QUEUE;
END;

6. Checking Delivery and Logs

You can monitor delivery using the following views:

  • APEX_MAIL_LOG: Shows email logs and errors

  • APEX_MAIL_QUEUE: Lists pending messages

  • APEX_MAIL_ATTACHMENTS: Shows details of attachments

7. Error Handling

Always include exception handling for better traceability:

BEGIN
  APEX_MAIL.SEND(...);
  APEX_MAIL.PUSH_QUEUE;
EXCEPTION
  WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('Error sending email: ' || SQLERRM);
END;

8. Best Practices

  • Always validate email addresses before calling APEX_MAIL.SEND.

  • Avoid sending large numbers of emails in loops without throttling or batching.

  • For high-volume email systems, consider scheduling jobs and monitoring the mail queue.

  • Secure sensitive content and avoid sending confidential information unencrypted.

By using the APEX_MAIL package, you can integrate reliable and flexible email functionality into your Oracle APEX applications. Whether it's a single alert or a scheduled newsletter, this tool ensures that messages are properly composed, queued, and delivered.

Example: Sending a Simple Email

BEGIN

    APEX_MAIL.SEND (

        p_to    => 'recipient@example.com',

        p_from  => 'your_email@gmail.com',

        p_subj  => 'Test Email',

        p_body  => 'This is a test email from Oracle APEX.'

    );

    COMMIT;

END;

/

Example: Sending an HTML Email

BEGIN

    APEX_MAIL.SEND (

        p_to        => 'recipient@example.com',

        p_from      => 'your_email@yahoo.com',

        p_subj      => 'HTML Email from APEX',

        p_body_html => '<h1>Hello</h1><p>This is an email with HTML formatting.</p>'

    );

    COMMIT;

END;

/

Manually Processing the Email Queue

Emails are stored in the APEX mail queue before being sent. To process the queue immediately:

BEGIN

    APEX_MAIL.PUSH_QUEUE;

END;

/


Conclusion
The APEX_MAIL package is an essential part of any Oracle APEX developer’s toolkit, enabling dynamic and automated email communication. By understanding how to construct messages and manage the mail queue, you can integrate reliable messaging into your applications. Combined with proper SMTP configuration, APEX_MAIL ensures your APEX apps can reach users with timely and relevant information.

How Do I set UpOracle Cloud Infrastructure (OCI) Email Delivery

 

Introduction
Setting up Oracle Cloud Infrastructure (OCI) Email Delivery in Oracle APEX allows your applications to send transactional and notification emails using Oracle’s secure and scalable cloud-based email service. This integration is ideal for organizations seeking high deliverability, built-in security, and control over sending domains. By configuring OCI Email Delivery correctly, APEX developers can ensure that outgoing messages are authenticated, trusted, and reliably received by users.

 To set up Oracle Cloud Infrastructure (OCI) Email Delivery in Oracle APEX, you must first configure your OCI account for email sending, obtain SMTP credentials, and then apply those credentials within your APEX environment. This allows APEX applications to send authenticated emails using Oracle's secure and scalable mail delivery service.

Here is a detailed step-by-step guide:

  1. Set Up OCI Email Delivery in Oracle Cloud Console

    • Log in to your Oracle Cloud Console.

    • Open the Email Delivery service from the navigation menu.

    • Create an Approved Sender by specifying the email address you want to send from.

      • Navigate to Email Delivery > Approved Senders.

      • Click Create Approved Sender, enter your sender email address (e.g., noreply@yourdomain.com), and submit.

      • Ensure this address matches the one you will use as the sender in APEX.

  2. Create SMTP Credentials for a User

    • Go to Identity & Security > Users, and select the user who will send emails.

    • Click SMTP Credentials, then Generate SMTP Credentials.

    • Note down the generated Username and Password. This password is shown only once.

    • These credentials are what APEX will use to authenticate with the OCI SMTP server.

  3. Verify Your Domain (Optional but Recommended)

    • If sending from a custom domain, configure SPF, DKIM, and DMARC records in your DNS provider.

    • This helps prevent emails from being marked as spam and improves deliverability.

    • Oracle provides DKIM key pairs and instructions under the Email Domain settings.

  4. SMTP Server Details for OCI Email Delivery
    Use the following settings in APEX:

    • SMTP Host: smtp.email.us-ashburn-1.oci.oraclecloud.com (or your region-specific endpoint)

    • Port: 587 (for TLS)

    • SMTP Username: the one generated in step 2

    • SMTP Password: the one generated in step 2

    • Enable STARTTLS/TLS encryption

  5. Configure SMTP in Oracle APEX

    • Navigate to Manage Instance > Instance Settings > Email

    • Enter the following:

      • SMTP Host Address: smtp.email.<region>.oci.oraclecloud.com

      • SMTP Port: 587

      • Use TLS: Yes

      • SMTP Username: paste from step 2

      • SMTP Password: paste from step 2

      • Default From Email Address: must match the approved sender email

    • Save the configuration

  6. Test Email from APEX
    Use a PL/SQL block to send a test email:

    BEGIN
      APEX_MAIL.SEND(
        p_to   => 'user@example.com',
        p_from => 'noreply@yourdomain.com',
        p_subj => 'OCI Email Delivery Test',
        p_body => 'This email was sent from Oracle APEX using OCI Email Delivery.'
      );
      APEX_MAIL.PUSH_QUEUE;
    END;
    

    Verify that the recipient receives the message.

  7. Monitor and Maintain

    • Check email logs using the APEX_MAIL_LOG view.

    • Monitor sending quotas and limits in the OCI Email Delivery dashboard.

    • Rotate SMTP credentials regularly and revoke them if compromised.

Security Notes

  • Always use TLS or STARTTLS encryption to protect SMTP traffic.

  • Use secure methods for storing SMTP credentials (avoid hardcoding them in PL/SQL).

  • Monitor usage in OCI to avoid abuse or unintended use of your sending domain.

By properly setting up OCI Email Delivery in Oracle APEX, your applications can send emails that are trusted, secure, and reliably delivered. This configuration aligns with enterprise-grade practices and is highly recommended for production applications.

For applications hosted on Oracle Cloud, OCI Email Delivery is the recommended SMTP provider.

  • SMTP Server: smtp.us-phoenix-1.oraclecloud.com (or the region-specific endpoint)

  • Port: 587 (TLS)

  • Encryption: TLS

  • Authentication: Required

  • Username: Oracle Cloud SMTP credential user

  • Password: Oracle Cloud SMTP credential password

To configure OCI Email Delivery in Oracle APEX:

BEGIN

    APEX_INSTANCE_ADMIN.SET_PARAMETER('SMTP_HOST_ADDRESS', 'smtp.us-phoenix-1.oraclecloud.com');

    APEX_INSTANCE_ADMIN.SET_PARAMETER('SMTP_USERNAME', 'ocid1.user.oc1.username');

    APEX_INSTANCE_ADMIN.SET_PARAMETER('SMTP_PASSWORD', 'your_smtp_password');

    APEX_INSTANCE_ADMIN.SET_PARAMETER('SMTP_HOST_PORT', '587');

    APEX_INSTANCE_ADMIN.SET_PARAMETER('SMTP_TLS_MODE', 'STARTTLS');

    COMMIT;

END;

/


Conclusion
Integrating OCI Email Delivery with Oracle APEX provides a powerful and secure way to handle email communications within your applications. With proper setup—including SMTP credentials, verified sender domains, and secure connections—you gain full control over email behavior while leveraging the reliability of Oracle’s infrastructure. This setup ensures consistent delivery, improves sender reputation, and supports a professional communication framework for all APEX-based systems.

How Do I Set Up Yahoo Mail SMTP Configuration

 

Introduction
Setting up Yahoo Mail SMTP configuration in Oracle APEX allows your applications to send emails through Yahoo’s email servers, enabling reliable communication such as notifications and alerts. Proper configuration is essential to meet Yahoo’s security requirements and ensure that emails are delivered successfully without being marked as spam or rejected.

Here is a detailed step-by-step guide to set up Yahoo Mail SMTP configuration in Oracle APEX:

  1. Prepare Your Yahoo Mail Account

    • Make sure your Yahoo Mail account is active and can send emails via SMTP.

    • For enhanced security, generate an App Password if your account has two-step verification enabled. This password will be used instead of your regular Yahoo password.

  2. Collect Yahoo SMTP Server Information
    Use the following SMTP server parameters for Yahoo Mail:

    • SMTP Server: smtp.mail.yahoo.com

    • Port: 465 (for SSL) or 587 (for TLS/STARTTLS)

    • Requires Authentication: Yes

    • Security: SSL or TLS depending on the port

  3. Access Oracle APEX Email Configuration
    Log into Oracle APEX with administrative rights. Navigate to Manage Instance > Instance Settings > Email or the equivalent workspace settings page for SMTP configuration.

  4. Enter SMTP Server Details

    • Set the SMTP Host Address to smtp.mail.yahoo.com

    • Set the SMTP Port to 465 for SSL or 587 for TLS

    • Enter your full Yahoo email address as the SMTP Username (e.g., yourname@yahoo.com)

    • Enter the SMTP Password, which should be your Yahoo account password or App Password if two-step verification is enabled

    • Enable SSL or TLS as required by the chosen port

  5. Set the Default Sender Email Address
    Specify your Yahoo email address as the “From” or default sender address to avoid email rejection or spam filtering.

  6. Save and Apply the Configuration
    Save the SMTP settings so Oracle APEX uses these parameters for sending emails.

  7. Test Email Sending
    Use the APEX_MAIL package or a test page to send a test email and confirm that it is delivered:

    BEGIN
      APEX_MAIL.SEND(
        p_to   => 'recipient@example.com',
        p_from => 'yourname@yahoo.com',
        p_subj => 'Yahoo SMTP Test Email',
        p_body => 'This is a test email sent from Oracle APEX using Yahoo SMTP.'
      );
      APEX_MAIL.PUSH_QUEUE;
    END;
    

    Check the recipient’s inbox to verify successful delivery.

  8. Troubleshooting Tips

    • Ensure the App Password is used if two-step verification is enabled.

    • Verify that outbound SMTP traffic on the selected ports is not blocked by your network.

    • Review Oracle APEX mail logs (APEX_MAIL_LOG) for errors or delivery issues.

    • Confirm that your Yahoo account is in good standing and not restricted.

  9. Security Best Practices

    • Use App Passwords rather than your main account password when two-step verification is active.

    • Avoid storing SMTP credentials in plain text or unsecured locations.

    • Regularly monitor account activity and update passwords as needed.

By following these steps, you will enable Oracle APEX applications to send emails securely and efficiently through Yahoo Mail’s SMTP servers, ensuring your users receive timely and trusted communications.

Yahoo Mail also requires authentication for SMTP connections.

  • SMTP Server: smtp.mail.yahoo.com

  • Port: 465 (SSL) or 587 (TLS)

  • Encryption: SSL or TLS

  • Authentication: Required

  • Username: Full Yahoo email address (e.g., your_email@yahoo.com)

  • Password: Application-specific password (if two-factor authentication is enabled)

 

To configure Yahoo Mail SMTP in Oracle APEX:

BEGIN

    APEX_INSTANCE_ADMIN.SET_PARAMETER('SMTP_HOST_ADDRESS', 'smtp.mail.yahoo.com');

    APEX_INSTANCE_ADMIN.SET_PARAMETER('SMTP_USERNAME', 'your_email@yahoo.com');

    APEX_INSTANCE_ADMIN.SET_PARAMETER('SMTP_PASSWORD', 'your_app_password');

    APEX_INSTANCE_ADMIN.SET_PARAMETER('SMTP_HOST_PORT', '465');

    APEX_INSTANCE_ADMIN.SET_PARAMETER('SMTP_TLS_MODE', 'SSL');

    COMMIT;

END;

/


Conclusion
By correctly configuring Yahoo Mail SMTP settings in Oracle APEX, you can leverage Yahoo’s email infrastructure for secure and efficient email delivery. Following best practices for authentication and encryption will help maintain the integrity of your messages and improve deliverability, ensuring your users receive important communications promptly.

How Do I Set UP Outlook/Office 365 SMTP Configuration

 

Introduction
Setting up Outlook or Office 365 SMTP configuration in Oracle APEX allows your applications to send emails through Microsoft’s trusted and widely used email platform. Proper configuration ensures that emails such as notifications, alerts, and confirmations are sent securely and reliably. Understanding how to configure SMTP settings for Outlook or Office 365 helps developers integrate seamless email functionality within their APEX applications.

 

Setting up Outlook or Office 365 SMTP configuration in Oracle APEX allows your applications to send emails through Microsoft’s secure and widely used email servers. Proper configuration ensures reliable delivery of notifications, alerts, and other messages, while meeting Microsoft’s authentication and security requirements.

Here is a detailed step-by-step guide to set up Outlook/Office 365 SMTP configuration in Oracle APEX:

  1. Prepare Your Office 365 Account

    • Ensure that your Office 365 or Outlook account is active and has permission to send emails via SMTP.

    • For accounts with multi-factor authentication (MFA), generate an App Password specifically for SMTP if needed.

  2. Collect SMTP Server Information
    Use the following parameters for Office 365 SMTP:

    • SMTP Server: smtp.office365.com

    • Port: 587 (recommended for STARTTLS)

    • Requires Authentication: Yes

    • Security: TLS/STARTTLS

  3. Access Oracle APEX Email Settings
    Log into Oracle APEX with administrator rights. Navigate to Manage Instance > Instance Settings > Email or to your workspace email settings if applicable.

  4. Enter SMTP Server Details

    • Set the SMTP Host Address to smtp.office365.com

    • Set the SMTP Port to 587

    • Enter your full Office 365 email address as the SMTP Username (e.g., user@yourdomain.com)

    • Enter the corresponding password or App Password as the SMTP Password

    • Enable Use TLS/STARTTLS to secure the connection

  5. Set Default Sender Email Address
    Configure the "From" address to match your Office 365 email to avoid sending errors or spam filtering.

  6. Save and Apply Configuration
    Save the SMTP settings so Oracle APEX uses these parameters for outgoing emails.

  7. Test Email Sending
    Send a test email from Oracle APEX using the APEX_MAIL package or a test page to verify the configuration works:

    BEGIN
      APEX_MAIL.SEND(
        p_to   => 'recipient@example.com',
        p_from => 'user@yourdomain.com',
        p_subj => 'Office 365 SMTP Test',
        p_body => 'This email confirms the Office 365 SMTP configuration in Oracle APEX.'
      );
      APEX_MAIL.PUSH_QUEUE;
    END;
    

    Check the recipient inbox to confirm successful delivery.

  8. Troubleshooting Tips

    • Confirm that your username and password are correct, and that any App Password is valid if MFA is enabled.

    • Ensure that your network allows outbound SMTP traffic on port 587.

    • Review email logs in Oracle APEX (APEX_MAIL_LOG) to identify any errors.

    • Verify that your sending domain has proper SPF, DKIM, and DMARC DNS records for better deliverability.

  9. Security Considerations

    • Use App Passwords instead of main account passwords when MFA is enabled.

    • Store SMTP credentials securely and avoid hardcoding them in applications.

    • Monitor your Office 365 account for unauthorized access and rotate credentials periodically.

By following these steps, Oracle APEX applications can effectively send emails through Outlook or Office 365 SMTP servers, ensuring secure, authenticated, and reliable email delivery to your users.


Microsoft Outlook and Office 365 have stricter authentication policies and may require additional configurations.

  • SMTP Server: smtp.office365.com

  • Port: 587

  • Encryption: TLS

  • Authentication: Required

  • Username: Full Outlook email address (e.g., your_email@outlook.com)

  • Password: Application-specific password (if multi-factor authentication is enabled)

To configure Outlook SMTP in Oracle APEX:

BEGIN

    APEX_INSTANCE_ADMIN.SET_PARAMETER('SMTP_HOST_ADDRESS', 'smtp.office365.com');

    APEX_INSTANCE_ADMIN.SET_PARAMETER('SMTP_USERNAME', 'your_email@outlook.com');

    APEX_INSTANCE_ADMIN.SET_PARAMETER('SMTP_PASSWORD', 'your_password');

    APEX_INSTANCE_ADMIN.SET_PARAMETER('SMTP_HOST_PORT', '587');

    APEX_INSTANCE_ADMIN.SET_PARAMETER('SMTP_TLS_MODE', 'STARTTLS');

    COMMIT;

END;

/


Conclusion
By correctly configuring Outlook or Office 365 SMTP settings in Oracle APEX, you enable your applications to leverage Microsoft’s robust email infrastructure for dependable and secure message delivery. Following best practices for authentication and encryption not only improves email deliverability but also safeguards your communication channels, enhancing the overall user experience.