Skip to content

Commit 788c164

Browse files
authored
Merge pull request #62 from mailtrap/email-logs-api
Add support for Email Logs API
2 parents bd06885 + aa1cd7f commit 788c164

38 files changed

Lines changed: 744 additions & 29 deletions

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ Email API:
240240
- Batch send with Template (Transactional) – [`batch/transactional_template.php`](examples/batch/transactional_template.php)
241241
- Batch send with Template (Bulk) – [`batch/bulk_template.php`](examples/batch/bulk_template.php)
242242
- Sending domain management CRUD – [`sending-domains/all.php`](examples/sending-domains/all.php)
243+
- Suppressions (find & delete) – [`sending/suppressions.php`](examples/sending/suppressions.php)
244+
- Email Logs (list & get by message ID) – [`sending/email-logs.php`](examples/sending/email-logs.php)
243245

244246
Email Sandbox (Testing):
245247
- Send an email (Sandbox) – [`testing/send-mail.php`](examples/testing/send-mail.php)
@@ -260,7 +262,6 @@ Contact management:
260262

261263
General API:
262264
- Templates CRUD – [`templates/all.php`](examples/templates/all.php)
263-
- Suppressions (find & delete) – [`sending/suppressions.php`](examples/sending/suppressions.php)
264265
- Billing info – [`general/billing.php`](examples/general/billing.php)
265266
- Accounts info – [`general/accounts.php`](examples/general/accounts.php)
266267
- Permissions listing – [`general/permissions.php`](examples/general/permissions.php)

examples/batch/bulk.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Mailtrap\Mime\MailtrapEmail;
66
use Symfony\Component\Mime\Address;
77

8-
require __DIR__ . '/../vendor/autoload.php';
8+
require __DIR__ . '/../../vendor/autoload.php';
99

1010
/**
1111
* Email Batch Sending API (Bulk)

examples/batch/bulk_template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Mailtrap\Mime\MailtrapEmail;
66
use Symfony\Component\Mime\Address;
77

8-
require __DIR__ . '/../vendor/autoload.php';
8+
require __DIR__ . '/../../vendor/autoload.php';
99

1010
/**
1111
* Email Batch Sending WITH TEMPLATE (Bulk)

examples/batch/sandbox.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Mailtrap\Mime\MailtrapEmail;
66
use Symfony\Component\Mime\Address;
77

8-
require __DIR__ . '/../vendor/autoload.php';
8+
require __DIR__ . '/../../vendor/autoload.php';
99

1010
/**
1111
* Test Email Batch

examples/batch/sandbox_template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Mailtrap\Mime\MailtrapEmail;
66
use Symfony\Component\Mime\Address;
77

8-
require __DIR__ . '/../vendor/autoload.php';
8+
require __DIR__ . '/../../vendor/autoload.php';
99

1010
/**
1111
* Test Email Batch WITH TEMPLATE

examples/batch/transactional.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Mailtrap\Mime\MailtrapEmail;
66
use Symfony\Component\Mime\Address;
77

8-
require __DIR__ . '/../vendor/autoload.php';
8+
require __DIR__ . '/../../vendor/autoload.php';
99

1010
/**
1111
* Email Batch Sending API (Transactional)

examples/batch/transactional_template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Mailtrap\Mime\MailtrapEmail;
66
use Symfony\Component\Mime\Address;
77

8-
require __DIR__ . '/../vendor/autoload.php';
8+
require __DIR__ . '/../../vendor/autoload.php';
99

1010
/**
1111
* Email Batch Sending WITH TEMPLATE (Transactional)

examples/bulk/bulk.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Symfony\Component\Mime\Email;
88
use Symfony\Component\Mime\Header\UnstructuredHeader;
99

10-
require __DIR__ . '/../vendor/autoload.php';
10+
require __DIR__ . '/../../vendor/autoload.php';
1111

1212
/**
1313
* Email Bulk Sending API

examples/bulk/bulk_template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Mailtrap\Mime\MailtrapEmail;
66
use Symfony\Component\Mime\Address;
77

8-
require __DIR__ . '/../vendor/autoload.php';
8+
require __DIR__ . '/../../vendor/autoload.php';
99

1010
/**
1111
* Email Bulk Sending WITH TEMPLATE

examples/config/all.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Symfony\Component\HttpClient\Psr18Client;
99
use Symfony\Component\Mime\Address;
1010

11-
require __DIR__ . '/../vendor/autoload.php';
11+
require __DIR__ . '/../../vendor/autoload.php';
1212

1313

1414
$apiToken = $_ENV['MAILTRAP_API_KEY'];

0 commit comments

Comments
 (0)