Email replies

Learn how to send email notifications for unread messages.

About the extension

The Email Replies adds extra functionality to the Email Notifications extension by enabling the receiver of the Email Notification to respond to the conversation by directly replying to the email.

Pre-requisite

To start using Email Notifications with Replies, you need to first enable and save the settings for Email Notifications extension. Learn more.

Once it is set up, you can come back and proceed from here.

SendGrid Setup

SendGrid Inbound parse webhook

Once your Domain Authentication is successful, you need to set up the Inbound parse. You need to add the MX record to your Domain name provider. More details about Inbound parsing can be found here.

The Webhook URL will be as follows:
For apps in the US region:

https://email-notification-us.cometchat.io/v1/reply

For apps in the EU region:

https://email-notification-eu.cometchat.io/v1/reply

Before saving the Inbound Host and URL:

  1. Uncheck Spam Check checkbox.
  2. Uncheck Send Raw checkbox.

Extension Settings

  1. Login to the CometChat Dashboard.
  2. Select your app and go to the Extensions section.
  3. Email Notification extension should already be enabled and set up as a pre-requisite.
  4. Enable Email replies and open up the Settings page.
  5. Select Email replies option and enter the sender Email ID.

📘

When adding Sender's Email in the settings, please make sure that it does not have "+" in it.

Save users' Email IDs

You can use our Update user API to set private metadata for a user. We recommend adding this code where you call our Create user API.

Alternatively, just for the sake of testing purposes, you can add this from the CometChat Pro Dashboard as well.

  1. Login to the CometChat Dashboard.
  2. Select your app and go to the "Users" section.
  3. Select any user of your choice and select the "Profile" tab.
  4. Paste the below JSON in the Metadata input box and hit Save.

The Metadata is a JSON that should have the @private key present and should have the value email specified for the user. The format for the private metadata must be as follows:

{
  "@private":
  {
    "email":"[email protected]"
  }
}

Respond via Email

Send a message to an offline user and watch them receive an email automagically.
Reply to the Email and receive a response in your chat.

Email notification when the user is offlineEmail notification when the user is offline

Email notification when the user is offline

Offline user replies to emailOffline user replies to email

Offline user replies to email

The sender receives the reply in chat.The sender receives the reply in chat.

The sender receives the reply in chat.

🚧

Do not add any other Email ID in To, Cc, or Bcc fields while replying.


Did this page help you?