Skip to content

Email Notifications | Emails

meow12 edited this page Dec 13, 2019 · 2 revisions

You can create, send and delete emails emails using the SDK. All other function management operations are done through the dashboard.

Send Email

Request

Route Request Class Method Description
/v1/notifications/email SendEmailRequest POST Sends an email message.

Example

var client = new CodeMashClient(apiKey, projectId);
var emailService = new CodeMashEmailService(client);

var response = await emailService.SendEmailAsync(new SendEmailRequest
{
    TemplateId = Guid.Parse("{TEMPLATE_ID}"),
    Emails = new [] { "test@email.com" }
});

Delete Email

Request

Route Request Class Method Description
/v1/notifications/email/{id} DeleteEmailRequest DELETE Deletes an email from queue.

Example

var client = new CodeMashClient(apiKey, projectId);
var emailService = new CodeMashEmailService(client);

var response = emailService.DeleteEmailAsync(new DeleteEmailRequest
{
    Id = "{EMAIL_ID}"
});

Requirements

Only an email which is in a state "Pending" can be deleted.



  1. Getting Started
    1.1. Register at CodeMash
    1.2. Install CodeMash
    1.3. Set up API keys

  2. Microservices
    2.1. Database
       2.1.1. Connect
       2.1.2. Insert
    2.2. Membership
       2.2.1. Connect
       2.2.2. User Registration
       2.2.3. Authentication
       2.2.4. User Management
    2.3. Files Service
       2.2.1. Connect
    2.4. Email Notifications
       2.2.1. Connect
       2.2.1. Emails
    2.5. Push Notifications
       2.2.1. Connect
       2.2.1. Devices
       2.2.1. Notifications
       2.2.1. Templates
    2.6. Scheduler
    2.7. Code Service
       2.2.1. Connect
       2.2.2. Functions
    2.8. Logs
       2.2.1. Connect
       2.2.2. Logs Management

  3. Other Services
    3.1. Project Settings
    3.2. Tokens Binding

Clone this wiki locally