using CodeMash.Notifications.Email.Services;
using Isidos.CodeMash.ServiceContracts;
namespace ConsoleApplication
static void Main(string[] args)
// 1. Get your Project ID and Secret Key
var projectId = Guid.Parse("{YOUR_PROJECT_ID}");
var apiKey = "{YOUR_SECRET_KEY}";
// 2. Create a general client for API calls
var client = new CodeMashClient(apiKey, projectId);
// 3. Create a service object
var emailService = new CodeMashEmailService(client);
var response = emailService.SendEmail(new SendEmailRequest
TemplateId = Guid.Parse("{TEMPLATE_ID}"),