Open an email

Enhance your video's interactivity by incorporating a feature that allows viewers to open an email with pre-filled data directly from the video. This functionality can be particularly useful in various scenarios, such as providing feedback, contacting support, or even sending a pre-composed message to a specific address. Here's a step-by-step guide to implementing this feature, along with examples to illustrate its utility.

To begin, you'll need to use an interactive → expression connector within your video editing platform. Here, you'll input a specific code snippet that triggers the email client to open with predefined content. Copy and paste the following JavaScript code into the connector:

Next, customize the code by replacing the placeholder text:

  • Change "Email subject" to your desired email subject line.

  • Replace "Email message" with your intended message content.

  • Substitute "[email protected]" with the recipient's email address.

Example 1: Feedback Request

Let's say you want to encourage viewers to provide feedback after watching a tutorial video. You could set up the email prompt as follows:

jsxCopy code
(data, liveData, event, element, player) => {
  const subject = "Feedback on Tutorial Video";
  const message = "Please share your thoughts or suggestions regarding the tutorial you just watched.";
  const mail = "[email protected]";
  window.open(`mailto:${mail}?subject=${subject}&body=${message}`);
}

Example 2: Contact Support

If your video deals with troubleshooting a product, you might want the viewer to have the option to contact support directly:

By following these steps and utilizing the examples as guides, you can create a more interactive and user-friendly video experience that encourages viewers to engage directly from the video platform.