Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 585 Bytes

TROUBLESHOOTING.md

File metadata and controls

13 lines (8 loc) · 585 Bytes

Table of Contents

Viewing the Request Body

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 the Smtpapi\Header object
  • Run print $header->jsonString(); to print out a stringified json formatted X-SMTPAPI header