Created
August 14, 2020 19:49
-
-
Save isaidspaghetti/774ccdb8bfaff4642c926e3dc4fe26b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//backend/routes.index.js | |
const msg = { | |
to: 'recipient@example.com', | |
from: 'yourSendGridVerifiedEmail@example.com', | |
subject: 'Stream Chat: Your client started a Support Chat Session', | |
html: `Hello, \n Your client, ${firstName} ${lastName} started a chat with the support team chat widget on ${createdAt}. \n | |
Here is the transcript of the chat: \n ${transcript} END OF TRANSCRIPT \n You can reach your client at ${email}. \n This message was sent to you from Stream Chat`, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment