Server IP : 172.67.216.182 / Your IP : 162.158.162.88 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/coircraft.com/wp-content/plugins/wp-mail-smtp/src/Providers/Sendinblue/ |
Upload File : |
<?php namespace WPMailSMTP\Providers\Sendinblue; use WPMailSMTP\ConnectionInterface; /** * Class Api is a wrapper for Sendinblue library with handy methods. * * @since 1.6.0 */ class Api { /** * The Connection object. * * @since 3.7.0 * * @var ConnectionInterface */ private $connection; /** * Contains mailer options, constants + DB values. * * @since 1.6.0 * * @var array */ private $options; /** * API constructor that inits defaults and retrieves options. * * @since 1.6.0 * * @param ConnectionInterface $connection The Connection object. */ public function __construct( $connection = null ) { if ( ! is_null( $connection ) ) { $this->connection = $connection; } else { $this->connection = wp_mail_smtp()->get_connections_manager()->get_primary_connection(); } $this->options = $this->connection->get_options()->get_group( Options::SLUG ); } /** * Configure API key authorization: api-key. * * @since 1.6.0 * @deprecated 3.9.0 We are no longer using the Sendinblue SDK. * * @return null */ protected function get_api_config() { _deprecated_function( __METHOD__, '3.9.0' ); return null; } /** * Get the mailer client instance for Account API. * * @since 1.6.0 * @deprecated 3.9.0 We are no longer using the Sendinblue SDK. */ public function get_account_client() { _deprecated_function( __METHOD__, '3.9.0' ); return null; } /** * Get the mailer client instance for Sender API. * * @since 1.6.0 * @deprecated 3.9.0 We are no longer using the Sendinblue SDK. */ public function get_sender_client() { _deprecated_function( __METHOD__, '3.9.0' ); return null; } /** * Get the mailer client instance for SMTP API. * * @since 1.6.0 * @deprecated 3.9.0 We are no longer using the Sendinblue SDK. */ public function get_smtp_client() { _deprecated_function( __METHOD__, '3.9.0' ); return null; } /** * Whether the mailer is ready to be used in API calls. * * @since 1.6.0 * * @return bool */ public function is_ready() { return ! empty( $this->options['api_key'] ); } }