Overview

Configure your Office 365 hosted email servers to send emails on behalf of your eCommerce siteThis document is to help you get setup to use Microsoft Office 365 as your email server for all outbound and bulk eCommerce site emails.

The steps below are to ensure your Microsoft email server can be accessed by your eCommerce site, essentially ensuring that the email server "recognises" the site accessing it via Oath authentication. Once that's setup, you'll need a user from your Microsoft account to send email from. This user will also need the right permissions to send emails from registered applications.

Good To Know

 It's worth noting that only Microsoft Entra Admins can grant these permissions, so ideally, you would work through the below steps with Entra admin permissions (or at least have someone on call who is).

Pre-requisites

  • Microsoft Entra organisation
  • Microsoft Entra Admin privileges 
  • Site version 4.39+
  • CommerceVision has enabled O365 on your site

Register your eCommerce site with Microsoft Entra & give it emailing permissions

Step-by-step guide

  1. Head to entra.microsoft.com & Log in as an Administrator

  2. Go to ApplicationApp Registrations New Registration

  3. Enter your Application name, for example "eCommerce Site"

  4. Click Register (the rest can be left as the default values)
  5. Click API Permissions Add Permissions Microsoft Graph Application Permissions

  6. Search for an add all or some of the following permissions (based on your setup): SMTP.Send, openid, email, POPAccessAsUser.All, profile, User.Read

  7. Ensure all permissions are granted for each of the above, each row should look something like the below


Good To Know

Take note of the Application (client) ID & Directory (tenant) ID provided after step 4, you'll need to enter these details into Commerce Visions's CMS later

Setting up a user to send emails from

Step-by-step guide

  1. Head to entra.microsoft.com & Log in as an Administrator

  2. Go to UsersAll Users → + New User

  3. Enter basic details in the basic tab, be mindful of the User Principle Name & Display Name you enter, that will be used as your from email address by your eCommerce site.

  4. Click Review & Create

Good To Know

Take note of your User Principle Name & Password, you'll need to enter these details into Commerce Visions's CMS later

Setting up your "from" email address in CMS

Step-by-step guide

  1. Head to CMS and login as an admin

  2. Go to SettingsSettingsNotifications

    Good To Know

    If you can't see any of the aforementioned actions, reach out to your Commerce Vision contact

  3. Ensure at least the System From Email Address is the same email address as the user you created in Microsoft Entra.
    Optionally, you may also set Smtp Bulk Mail Server From Email, but it must also match the email address of the user you created in Microsoft Entra

Enter all the details into CMS

Step-by-step guide

  1. Head to CMS and login as an admin

  2. Go to SettingsFeature ManagementAdvancedConfigure

    Good To Know

    If you can't see a "Configure" button, reach out to your Commerce Vision contact

  3. Toggle Enable Email OAuth 365 = on

  4. Fill out the fields with the following information, which your should have seen in the above step-by-step guides:

    Email OAuth Tenant ID = Directory (tenant) ID
    Email OAuth Client ID = Application (client) ID
    Email OAuth User Name = User Principle Name
    Email OAuth Password = User Password

  5. Click Save & Exit

  6. You're all done! But before you finish, it's wise to test your configuration, you can see how to do that here: How to test email templates

Related help


Additional Information

Minimum Version Requirements

4.39+

Prerequisites

Microsoft Entra Account with Admin access

Self Configurable

Yes

Business Function

Emails

BPD Only?

No

B2B/B2C/Both

Both

Third Party Costs

Yes