Builds an OpenTracking object for SendGrid email API.
// 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 helper builds the OpenTracking object for a /mail/send API call
*/
namespace SendGrid\Mail;
use SendGrid\Helper\Assert;
/**
* This class is used to construct a OpenTracking object for the /mail/send API call
*
* Allows you to track whether the email was opened or not, but including a single
* pixel image in the body of the content. When the pixel is loaded, we can log that
* the email was opened
*
* @package SendGrid\Mail
*/
class OpenTracking implements \JsonSerializable
{
/** @var $enable bool Indicates if this setting is enabled */
private $enable;
/**
*
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key