-
Notifications
You must be signed in to change notification settings - Fork 1
Email Notifications | Emails
You can create, send and delete emails emails using the SDK. All other function management operations are done through the dashboard.
Route | Request Class | Method | Description |
---|---|---|---|
/v1/notifications/email | SendEmailRequest | POST | Sends an email message. |
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" }
});
Route | Request Class | Method | Description |
---|---|---|---|
/v1/notifications/email/{id} | DeleteEmailRequest | DELETE | Deletes an email from queue. |
var client = new CodeMashClient(apiKey, projectId);
var emailService = new CodeMashEmailService(client);
var response = emailService.DeleteEmailAsync(new DeleteEmailRequest
{
Id = "{EMAIL_ID}"
});
Only an email which is in a state "Pending" can be deleted.
-
Getting Started
1.1. Register at CodeMash
1.2. Install CodeMash
1.3. Set up API keys -
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 -
Other Services
3.1. Project Settings
3.2. Tokens Binding