Skip to content

Instantly share code, notes, and snippets.

@isaidspaghetti
Created August 14, 2020 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaidspaghetti/774ccdb8bfaff4642c926e3dc4fe26b1 to your computer and use it in GitHub Desktop.
Save isaidspaghetti/774ccdb8bfaff4642c926e3dc4fe26b1 to your computer and use it in GitHub Desktop.
//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