Note:

Set up C-Sharp code to use Oracle Cloud Infrastructure Email Delivery service

Introduction

The Oracle Cloud Infrastructure Email Delivery service provides a fast and reliable managed solution for sending secured, high-volume marketing and transactional emails.

The Email Delivery service provides tools necessary to send application-generated email for mission-critical communications such as receipts, fraud detection alerts, multi-factor identity verification, and password resets.

Note: The platform is optimized for both bulk/marketing and transactional email and not for personal correspondence email.

If you want to send emails in C# with Oracle Cloud Infrastructure (OCI) Email Delivery service which uses modern protocols for sending mail, the .NET SmtpClient Class is no longer used. However, we can use an open source package named Mailkit which has an email client that supports a wide range of modern protocols.

Oracle Cloud Infrastructure’s Email Deliverability team manages the platform using key deliverability metrics to ensure the best sending reputation possible for your emails. The following items are provided to you when you send emails using the Email Delivery service:

When you use Email Delivery, it becomes your outbound email server. If you have an existing email server, you can keep it and configure it to send through Email Delivery. The Email Delivery service takes care of the feedback loops and platform reputation automatically.

Objective

Set up C# code to use Oracle Cloud Infrastructure Email Delivery service.

Prerequisites

Task 1: Configure OCI Email Delivery

Note: The following configuration is for example purposes and does not take into account the best practices for configuring the service.

For more information, see Deliverability Best Practices.

  1. In the Oracle Cloud portal, access the OCI Email Delivery service.

    Locate Email Delivery Service

  2. Create a domain for sending messages.

    Create Email Domain

  3. Configure an Approved Sender for sending messages.

    Configuring an Approved Sender

Task 2: Set up the C# code

Acknowledgments

Authors - Leandro Camargo (Cloud Specialist A-Team), Ivan Vasquez (Cloud Specialist A-Team)

More Learning Resources

Explore other labs on docs.oracle.com/learn or access more free learning content on the Oracle Learning YouTube channel. Additionally, visit education.oracle.com/learning-explorer to become an Oracle Learning Explorer.

For product documentation, visit Oracle Help Center.