SpamCheck helper for SendGrid mail API, configuring spam detection settings.
// 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 SpamCheck object for a /mail/send API call
*/
namespace SendGrid\Mail;
use SendGrid\Helper\Assert;
/**
* This class is used to construct a SpamCheck object for the /mail/send API call
*
* @package SendGrid\Mail
*/
class SpamCheck implements \JsonSerializable
{
/** @var $enable bool Indicates if this setting is enabled */
private $enable;
/**
* @var $threshold int The threshold used to determine if your content qualifies as
* spam on a scale from 1 to 10, with 10 being most strict, or most
* likely to be considered as spam
*/
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key