The email feature in WordPress is crucial for effective communication and user engagement. WordPress websites often require communication with users for various purposes, such as user registrations, password resets, email notifications, and contact form submissions. WordPress on App Service has been integrated with Azure Email Communication service to enable email feature
The email Integration with WordPress on Azure AppService can be achieved in 2 ways:
- Newly created sites: Email integration is enabled and configured out of the box
- Existing WordPress sites: It needs an explicit integration setup as per the steps outlined below.
Follow the steps to create a new WordPress website here: How to set up a new WordPress website on Azure App Service - Microsoft Community Hub
To enhance the user experience, we have enabled email support for all the SKUs (Basic/Standard/Premium) by default.
As a default option, we offer an Azure managed domain for sending emails from WordPress sites. This seamless integration allows you to easily send emails without the need for additional setup.
prerequisite: As a user, you already have an active Azure subscription and an active WordPress site hosted on Azure AppService.
- Create the Azure Communication Resource following the quick start guide.
- Create the Email communication Resource following the quick start guide.
- Add Azure managed domain to email communication service following the quick start guide.
- Connect the azure managed domain with azure communication service resource following the quick start guide.
- Go to Azure communication service resource and navigate to keys blade and save the primary key and resource endpoint for later use.
-
Go the Azure email managed domain resource and navigate to MailFrom Addresses blade and save the MailFrom address.
-
Go the App service resource and add the app setting in the below format
Application Settings Value WP_EMAIL_CONNECTION_STRING endpoint= <endpoint>
;senderaddress=<sender-address>
;accesskey=<access-key>
Note:
- Replace
<endpoint>
with the Azure communication service endpoint mentioned in step 5. Make sure that there is no training slash ("/") at the end of the endpoint URL. - Replace
<access-key>
with the Azure communication service primary key mentioned in step 5. - Replace
<sender-address>
with MailFrom Address mentioned in step 6.
- Replace
-
Download the App service email plugin from here: Click here.
-
Go to Wordpress Admin Dashboard, navigate to plugins tab and then click on add new plugin.
- Click on Upload Plugin and upload the App service Email plugin zip file (downloaded in above step).
- Install and activate the plugin.
After installing and activating the App service email plugin, your email setup is fully configured and ready to be utilized for sending emails from your WordPress website.