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
accountIdlongID 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.
BatchBulk()
Factory method to create batch bulk email client.
IBatchEmailClient BatchBulk()
Returns
- IBatchEmailClient
New IBatchEmailClient instance that can be used to send bulk emails in a batch.
BatchEmail()
Gets default batch email client.
Type of the client (transactional, bulk or test) is defined by configuration.
IBatchEmailClient BatchEmail()
Returns
- IBatchEmailClient
IBatchEmailClient instance that can be used to send batch emails to the API, specified by configuration.
BatchTest(long)
Factory method to create batch test email client.
IBatchEmailClient BatchTest(long inboxId)
Parameters
inboxIdlongID of the inbox to send test emails to.
Returns
- IBatchEmailClient
New IBatchEmailClient instance that can be used to send test emails to the specified
inboxIdin a batch.
BatchTransactional()
Factory method to create batch transactional email client.
IBatchEmailClient BatchTransactional()
Returns
- IBatchEmailClient
New IBatchEmailClient instance that can be used to send transactional emails in a batch.
Bulk()
Factory method to create bulk email client.
ISendEmailClient Bulk()
Returns
- ISendEmailClient
New ISendEmailClient 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.
ISendEmailClient Email()
Returns
- ISendEmailClient
ISendEmailClient instance that can be used to send emails to the API, specified by configuration.
Test(long)
Factory method to create test email client.
ISendEmailClient Test(long inboxId)
Parameters
inboxIdlongID of the inbox to send test emails to.
Returns
- ISendEmailClient
New ISendEmailClient instance that can be used to send test emails to the specified
inboxId.
Transactional()
Factory method to create transactional email client.
ISendEmailClient Transactional()
Returns
- ISendEmailClient
New ISendEmailClient instance that can be used to send transactional emails.