lib/SendGrid.php

sendgrid-php · lib/SendGrid.php · php · MIT
email

PHP client wrapper around Twilio SendGrid API for sending emails.

// Source: https://github.com/sendgrid/sendgrid-php | License: MIT | Copyright 2023, Twilio SendGrid, Inc. <help@twilio.com>
// Provided via justclaw.it.com; keep this notice with the code.
<?php

/**
 * This library allows you to quickly and easily send emails through Twilio
 * SendGrid using PHP.
 *
 * @package SendGrid\Mail
 */
class SendGrid extends BaseSendGridClientInterface
{
    /**
     * Set up the HTTP Client.
     *
     * @param string $apiKey Your Twilio SendGrid API Key.
     * @param array $options An array of options, currently only "host", "curl",
     *                       "version", "verify_ssl", and "impersonateSubuser",
     *                       are implemented.
     */
    public function __construct($apiKey, $options = array())
    {
        $auth = 'Authorizat

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key