Interface IMailtrapClient
- Namespace
- Mailtrap
- Assembly
- Mailtrap.Abstractions.dll
Mailtrap API client.
public interface IMailtrapClient : IRestResource
- Inherited Members
Methods
Account(long)
Gets resource for specific account, identified by accountId
.
IAccountResource Account(long accountId)
Parameters
accountId
longID of account to get resource for.
Returns
- IAccountResource
Resource for the account with specified ID.
Accounts()
Gets account collection resource.
IAccountCollectionResource Accounts()
Returns
- IAccountCollectionResource
Account collection resource.
Bulk()
Factory method to create bulk email client.
IEmailClient Bulk()
Returns
- IEmailClient
New IEmailClient instance that can be used to send bulk emails.
Email()
Gets default email client.
Type of the client (transactional, bulk or test) is defined by configuration.
IEmailClient Email()
Returns
- IEmailClient
IEmailClient instance that can be used to send emails to the API specified by configuration.
Test(long)
Factory method to create test email client.
IEmailClient Test(long inboxId)
Parameters
inboxId
longID of the inbox to send test emails to.
Returns
- IEmailClient
New IEmailClient instance that can be used to send test emails to the specified
inboxId
.
Transactional()
Factory method to create transactional email client.
IEmailClient Transactional()
Returns
- IEmailClient
New IEmailClient instance that can be used to send transactional emails.