How do I create a Sendgrid email template?

How do I create a Sendgrid email template?

Creating a template

  1. Open the Legacy Templates page and then click Create Template.
  2. Add a unique template name in the dialogue box and then click Save.
  3. Open the Actions drop-down menu to create a new version.
  4. Click Add Version. The editor opens. From here, you can change the subject and the body of your email template.

How do I export a SendGrid template?

Level Up your Emails in SendGrid

  1. Connect from Brand Settings. Go to Settings > Connectors. Click the Connect button for SendGrid. The pop-up asks you to insert:
  2. From Export. When your message is ready, click on the Export button on the Message Details page. And then click on Push to your sending system.

What is legacy template?

Legacy templates, on the other hand, are basic email templates that lack the enhanced, modern elements that are available in the simple and designer templates.

How to create a template for an email?

To use an email message template, use the following steps: Select New Items > More Items > Choose Form . In the Choose Form dialog box, in Look In , click User Templates in File System .

How to fetch HTML from a template based email?

To do this, Let’s create a new folder Templates under the Views folder and add a new cshtml file called content.cshtml which contains the HTML layout for the email body. This cshtml file shall be rendered with the data we pass onto the Razor templating framework and fetch the plan HTML out of it.

How to add email templates in ASP.NET Core?

Add a new Item in Email Template (right click on Email Template folder >> add New Item). Select ASP.NET Core and then HTML Page. Set a name for the HTML file. In my case, I have named it as Welcome_EmailTemplate.html (But I will be using Confirm_Account_Registration.html for demo purposes whose design is the same with a different file name).

How to localize an email template in ASP.NET?

RazorView (.cshtml) file acts as an Email Template to format the body. In order to localize the email template, i.e., RazorView we need resource files. So add as many resource files as number of languages required. Here, I have added two resource files (English,French) with all the required phrases.