get( \Gravity_Forms\Gravity_SMTP\Handler\Handler_Service_Provider::HANDLER )->mail( $to, $subject, $message, $headers, $attachments ); } } if ( ! function_exists( 'wp_mail' ) && ! $is_configured && $test_mode ) { function wp_mail( $to, $subject, $message, $headers = '', $attachments = array() ) { $test_mode = true; $atts = apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers', 'attachments', 'test_mode' ) ); return true; } } if ( ! function_exists( 'gsmtp_fi_third_party_needs_init' ) ) { function gsmtp_fi_third_party_needs_init() { $container = \Gravity_Forms\Gravity_SMTP\Gravity_SMTP::container(); $handler = $container->get( Handler_Service_Provider::HANDLER ); if ( ! is_null( $handler ) ) { return false; } return true; } }