When debugging or testing, it may be useful to examine the raw request body to compare against the documented format.
In the examples/example.php
file, after you've added all custom header data, you can do the following two things:
- Run
var_dump($header);
- Dump out theSmtpapi\Header
object - Run
print $header->jsonString();
to print out a stringified json formatted X-SMTPAPI header