/home/techb158/immovalet.com/vendor/sendgrid/sendgrid/lib/mail
NameSizeModeActions
Asm.php46690644editdlrm
Attachment.php58880644editdlrm
BatchId.php15740644editdlrm
Bcc.php2810644editdlrm
BccSettings.php25150644editdlrm
BypassListManagement.php19100644editdlrm
Category.php17180644editdlrm
Cc.php2780644editdlrm
ClickTracking.php26860644editdlrm
Content.php28950644editdlrm
CustomArg.php26480644editdlrm
EmailAddress.php49990644editdlrm
Footer.php30270644editdlrm
From.php2840644editdlrm
Ganalytics.php64270644editdlrm
GroupId.php14480644editdlrm
GroupsToDisplay.php32070644editdlrm
Header.php23340644editdlrm
HtmlContent.php5310644editdlrm
IpPoolName.php19800644editdlrm
Mail.php631140644editdlrm
MailSettings.php83210644editdlrm
MimeType.php3190644editdlrm
OpenTracking.php36210644editdlrm
Personalization.php79120644editdlrm
PlainTextContent.php5470644editdlrm
ReplyTo.php2930644editdlrm
SandBoxMode.php16030644editdlrm
Section.php22270644editdlrm
SendAt.php35760644editdlrm
SpamCheck.php42900644editdlrm
Subject.php13700644editdlrm
SubscriptionTracking.php67540644editdlrm
Substitution.php29640644editdlrm
TemplateId.php23130644editdlrm
To.php2780644editdlrm
TrackingSettings.php92310644editdlrm
TypeException.php770644editdlrm
Edit: /home/techb158/immovalet.com/vendor/sendgrid/sendgrid/lib/mail/MailSettings.php (8321B)
setBccSettings($bcc_settings); } if (isset($bypass_list_management)) { $this->setBypassListManagement($bypass_list_management); } if (isset($footer)) { $this->setFooter($footer); } if (isset($sandbox_mode)) { $this->setSandboxMode($sandbox_mode); } if (isset($spam_check)) { $this->setSpamCheck($spam_check); } } /** * Set the bcc settings on a MailSettings object * * @param BccSettings|bool $enable The BccSettings object or an indication * if the setting is enabled * @param string|null $email The email address that you would like * to receive the BCC * * @throws \SendGrid\Mail\TypeException */ public function setBccSettings($enable, $email = null) { if ($enable instanceof BccSettings) { $bcc = $enable; $this->bcc = $bcc; return; } Assert::boolean( $enable, 'enable', 'Value "$enable" must be an instance of SendGrid\Mail\BccSettings or a boolean.' ); $this->bcc = new BccSettings($enable, $email); } /** * Retrieve the bcc settings from a MailSettings object * * @return Bcc */ public function getBccSettings() { return $this->bcc; } /** * Set bypass list management settings on a MailSettings object * * @param BypassListManagement|bool $enable The BypassListManagement * object or an indication * if the setting is enabled * * @throws \SendGrid\Mail\TypeException */ public function setBypassListManagement($enable) { if ($enable instanceof BypassListManagement) { $bypass_list_management = $enable; $this->bypass_list_management = $bypass_list_management; return; } Assert::boolean( $enable, 'enable', 'Value "$enable" must be an instance of SendGrid\Mail\BypassListManagement or a boolean.' ); $this->bypass_list_management = new BypassListManagement($enable); } /** * Retrieve bypass list management settings from a MailSettings object * * @return BypassListManagement */ public function getBypassListManagement() { return $this->bypass_list_management; } /** * Set the footer settings on a MailSettings object * * @param Footer|bool $enable The Footer object or an indication * if the setting is enabled * @param string|null $text The plain text content of your footer * @param string|null $html The HTML content of your footer * * @throws TypeException */ public function setFooter($enable, $text = null, $html = null) { if ($enable instanceof Footer) { $footer = $enable; $this->footer = $footer; return; } $this->footer = new Footer($enable, $text, $html); } /** * Retrieve the footer settings from a MailSettings object * * @return Footer */ public function getFooter() { return $this->footer; } /** * Set sandbox mode settings on a MailSettings object * * @param SandBoxMode|bool $enable The SandBoxMode object or an * indication if the setting is enabled * * @throws TypeException */ public function setSandboxMode($enable) { if ($enable instanceof SandBoxMode) { $sandbox_mode = $enable; $this->sandbox_mode = $sandbox_mode; return; } Assert::boolean( $enable, 'enable', 'Value "$enable" must be an instance of SendGrid\Mail\SandBoxMode or a boolean.' ); $this->sandbox_mode = new SandBoxMode($enable); } /** * Retrieve sandbox mode settings on a MailSettings object * * @return SandBoxMode */ public function getSandboxMode() { return $this->sandbox_mode; } /** * Enable sandbox mode on a MailSettings object * * @throws TypeException */ public function enableSandboxMode() { $this->setSandboxMode(true); } /** * Disable sandbox mode on a MailSettings object * * @throws TypeException */ public function disableSandboxMode() { $this->setSandboxMode(false); } /** * Set spam check settings on a MailSettings object * * @param SpamCheck|bool $enable The SpamCheck object or an * indication if the setting is enabled * @param int $threshold 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 * @param string $post_to_url An Inbound Parse URL that you would like * a copy of your email along with the spam * report to be sent to * * @throws TypeException */ public function setSpamCheck($enable, $threshold = null, $post_to_url = null) { if ($enable instanceof SpamCheck) { $spam_check = $enable; $this->spam_check = $spam_check; return; } Assert::boolean( $enable, 'enable', 'Value "$enable" must be an instance of SendGrid\Mail\SpamCheck or a boolean.' ); $this->spam_check = new SpamCheck($enable, $threshold, $post_to_url); } /** * Retrieve spam check settings from a MailSettings object * * @return SpamCheck */ public function getSpamCheck() { return $this->spam_check; } /** * Return an array representing a MailSettings object for the Twilio SendGrid API * * @return null|array */ public function jsonSerialize() { return array_filter( [ 'bcc' => $this->getBccSettings(), 'bypass_list_management' => $this->getBypassListManagement(), 'footer' => $this->getFooter(), 'sandbox_mode' => $this->getSandboxMode(), 'spam_check' => $this->getSpamCheck() ], function ($value) { return $value !== null; } ) ?: null; } }