This extension was developed to send test HTML emails without leaving Visual Studio Code.
Before you get started you'll need to set up a SendGrid account and generate an API key. Note: SendGrid offers free accounts if you're sending less than 100 emails per day, any more than that and you'll need to upgrade to a paid plan.
Install this extension from the Visual Studio Code Marketplace.
Open your HTML email in the editor then initiate the command palette Ctrl-Shift-P (Windows/Linux) or Cmd-Shift-P (macOS) and search 'Kirim'.
Select 'Kirim: Load Config' to generate a default configuration file which will be used to contain your api key and basic email details for sending.
Fill out the details in the config template placed at the top of your HTML email (see example below).
name: Test Team
from: Test Name <email@example.com>
subject: This is a test email
With your HTML email active, open the command palette again and search then select 'Kirim: Send Email'.
Kirim makes it easy to load, save, clear or delete your config templates, as well as send HTML emails. See below for an explanation of each command.
Kirim: Load Config - Used to load the default and saved config templates.
Kirim: Save Config - Used to save config templates to load in other emails. Note: The name field in the config references the saved template.
Kirim: Clear Config - Used to remove the config template from the email before dispatch. Note: There's no need to clear the config before sending as it won't be included in the send command.
Kirim: Delete Config - Used to delete saved config templates.
Kirim: Send Email - Used to send a HTML email to the specified email addresses in your config template.