Файловый менеджер - Редактировать - /home/goldin10/public_html/getoutyourbox.com/wp-content/plugins/caldera-forms/classes/email/callbacks.php
Error occurred
Назад
<?php /** * Callbacks functions used to hook in and replace default mailer at "caldera_forms_mailer" * * @package Caldera_Forms * @author Josh Pollock <Josh@CalderaWP.com> * @license GPL-2.0+ * @link * @copyright 2016 CalderaWP LLC */ class Caldera_Forms_Email_Callbacks { /** * Send email via SendGrid API * * @since 1.4.0 * * @uses "caldera_forms_mailer" * * @param $mail * @param $data * @param $form * * @return mixed */ public static function sendgrid( $mail, $data, $form ){ $client = new Caldera_Forms_Email_SendGrid( $mail ); $key = Caldera_Forms_Email_Settings::get_key( 'sendgrid' ); if ( ! empty( $key ) ) { $client->set_api( array( $key ) ); $response = $client->send(); if( in_array( $response, array( 202, 201, 200 ) ) ){ Caldera_Forms_Save_Final::after_send_email( $form, $data, true, $mail[ 'csv' ], $mail, 'sendgrid' ); //prevent send return null; }else{ /** * Action documented in Caldera_Forms_Save_Final::after_send_email() */ do_action( 'caldera_forms_mailer_failed', $mail, $data, $form, 'sendgrid' ); //fallback to default return $mail; } } } }
| ver. 1.4 |
Github
|
.
| PHP 7.2.34 | Генерация страницы: 0.06 |
proxy
|
phpinfo
|
Настройка