mailgun-php/src/Mailgun/Bounces
2013-08-02 17:59:20 -07:00
..
Bounces.php Added multiple new endpoints and their respective tests! 2013-07-24 17:43:24 -07:00
README.md Adjusted API key for samples 2013-08-02 17:59:20 -07:00

Mailgun - Bounces

This is the Mailgun PHP Bounces endpoint.

The below assumes you've already installed the Mailgun PHP SDK in to your project. If not, go back to the master README for instructions.

Usage

Here's how to use the "Bounces" API endpoint:

# First, instantiate the client with your PUBLIC API credentials and domain. 
$mgClient = new MailgunClient("key-3ax6xnjp29jd6fds4gc373sgvjxteol0", "samples.mailgun.org");

# Next, instantiate a Bounces object on the Bounces API endpoint.
$bounces = $mgClient->Bounces();

# Finally, add an address to the Bounces Table.
$result = $bounces->addAddress("bounce@samples.mailgun.org", 550, "Server not accepting messages for mailbox.");

Available Functions

addAddress(string $bounceAddress, int $bounceCode, string $bounceError);

deleteAddress(string $bounceAddress);

getBounce(string $bounceAddress);

getBounces(int $limit, int $skip);

More Documentation

See the official Mailgun Docs for more information.