get_connections_manager()->get_primary_connection(); } $description = sprintf( wp_kses( /* translators: %1$s - URL to Mandrill website. */ __( 'Mandrill is a transactional email API for MailChimp users. It is a reliable, scalable, and secure delivery API for transactional emails. Mandrill requires a paid monthly subscription to send emails.', 'wp-mail-smtp' ) . '

' . /* translators: %2$s - URL to wpmailsmtp.com doc. */ __( 'To get started, read our Mandrill documentation.', 'wp-mail-smtp' ), [ 'strong' => true, 'br' => true, 'a' => [ 'href' => true, 'rel' => true, 'target' => true, ], ] ), 'https://mandrillapp.com/', esc_url( wp_mail_smtp()->get_utm_url( 'https://wpmailsmtp.com/docs/how-to-set-up-the-mandrill-mailer-in-wp-mail-smtp/', 'Mandrill documentation' ) ) ); parent::__construct( [ 'logo_url' => wp_mail_smtp()->assets_url . '/images/providers/mandrill.svg', 'slug' => self::SLUG, 'title' => esc_html__( 'Mandrill', 'wp-mail-smtp' ), 'description' => $description, 'supports' => [ 'from_email' => true, 'from_name' => true, 'return_path' => false, 'from_email_force' => true, 'from_name_force' => true, ], 'recommended' => false, ], $connection ); } /** * Output the mailer provider options. * * @since 4.6.0 */ public function display_options() { // phpcs:ignore WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound, WordPress.Security.NonceVerification.Recommended $get_api_key_url = 'https://mandrillapp.com/settings/index/'; ?>
connection_options->is_const_defined( $this->get_slug(), 'api_key' ) ) : ?> display_const_set_message( 'WPMS_MANDRILL_API_KEY' ); ?> get_slug(); $value = $this->connection_options->get( $this->get_slug(), 'api_key' ); UI::hidden_password_field( [ 'name' => "wp-mail-smtp[{$slug}][api_key]", 'id' => "wp-mail-smtp-setting-{$slug}-api_key", 'value' => $value, 'clear_text' => esc_html__( 'Remove API Key', 'wp-mail-smtp' ), ] ); ?>

' . esc_html__( 'Get API Key', 'wp-mail-smtp' ) . '' ); ?>