\PostmarkMailer
A {@link Mailer} subclass to handle sending emails through the Postmark webservice API rather then send_mail(). Uses the official Postmark PHP library.
Synopsis
class PostmarkMailer
extends Mailer
{
- // members
- private static string $api_key = '';
- private static array $sender_signatures = ;
- // methods
- public bool sendPlain()
- public bool sendHTML()
- private bool sendPostmarkEmail()
Hierarchy
Extends
- Mailer
Members
private
- $api_key
—
string
Your Postmark App API Key. Get one at https://postmarkapp.com/ - $sender_signatures
—
array
List of confirmed email addresses (sender signatures). Set them up at https://postmarkapp.com/
Methods
private
- sendPostmarkEmail() — Send email through Postmark's REST API
public
- sendHTML() — Send an email as both HTML and plaintext
- sendPlain() — Send a plain-text email.