Usage
Learn how to use Shootmail in your app.
Import
Import the Shootmail
client and CSS in your app
Initialize the client
Intialize Shootmail client. Make sure to initialize the client at a place in your code that runs only client side and not on the server.
Declare the editor element
Declare the editor element in your HTML. This is the element where the editor will be rendered.
Done! This should be all you need to get started. You should now see the editor rendered in your app, ready to be used.
Configuration Options
The following configuration options are available:
elementId: string (required)
The ID of the editor element. This is the element where the editor will be rendered.
imageServiceUrl: object (optional)
This is optional but recommended. This is used to upload images used in the email.
Currently, the only image service available is ImageKit, more image services coming soon.
theme: object (optional)
Use this option to change the theme of the editor to suit your app’s theme.
settingsControl: boolean (optional)
If true
, this displays a settings control on the editor, to customize options like editor
background, email background, padding, border radius, etc.
This allows your users to completely customize how their emails look.
Email Preview
Users can preview how their emails will look like on the email clients before sending them. Shootmail provides a built-in email preview dialog with options to preview on desktop and mobile.