Send emails with API | Postmark

PHOTO EMBED

Fri Sep 17 2021 10:47:34 GMT+0000 (UTC)

Saved by @lusiba #php

// Send an email with the Postmark-PHP library
// Learn more -> https://postmarkapp.com/developer/integration/official-libraries#php

// Install with composer
composer require wildbit/postmark-php

// Import
use Postmark\PostmarkClient;

// Example request
$client = new PostmarkClient("server token");

$sendResult = $client->sendEmail(
  "sender@example.com",
  "receiver@example.com",
  "Hello from Postmark!",
  "This is just a friendly 'hello' from your friends at Postmark."
);
content_copyCOPY

https://postmarkapp.com/email-api