get_connections_manager()->get_primary_connection();
}
$allowed_kses_html = array(
'strong' => array(),
'br' => array(),
'a' => array(
'href' => array(),
'rel' => array(),
'target' => array(),
),
);
$description = sprintf(
wp_kses( /* translators: %s - URL to smtp.com site. */
__( 'SMTP.com is one of our recommended mailers. It\'s a transactional email provider that\'s currently used by 100,000+ businesses. SMTP.com is an established brand that\'s been offering email services for more than 20 years.
SMTP.com offers a free 30-day trial that allows you to send up to 50,000 emails.', 'wp-mail-smtp' ),
$allowed_kses_html
),
'https://wpmailsmtp.com/go/smtp/'
);
$description .= '
';
$description .= sprintf(
wp_kses( /* translators: %s - URL to wpmailsmtp.com doc page for stmp.com. */
__( 'To get started, read our SMTP.com documentation.', 'wp-mail-smtp' ),
$allowed_kses_html
),
esc_url( wp_mail_smtp()->get_utm_url( 'https://wpmailsmtp.com/docs/how-to-set-up-the-smtp-com-mailer-in-wp-mail-smtp/', 'SMTP.com documentation' ) )
);
$mailer_options = $connection->get_options()->get_group( self::SLUG );
if ( empty( $mailer_options['api_key'] ) && empty( $mailer_options['channel'] ) ) {
$description .= sprintf(
'
' . esc_html__( 'Transparency and Disclosure', 'wp-mail-smtp' ) . '' . esc_html__( 'We believe in full transparency. The SMTP.com links above are tracking links as part of our partnership with SMTP (j2 Global). We can recommend just about any SMTP service, but we only recommend products that we believe will add value to our users.', 'wp-mail-smtp' ) . '
'; parent::__construct( [ 'logo_url' => wp_mail_smtp()->assets_url . '/images/providers/smtp-com.svg', 'slug' => self::SLUG, 'title' => esc_html__( 'SMTP.com', 'wp-mail-smtp' ), 'description' => $description, 'recommended' => true, 'supports' => [ 'from_email' => true, 'from_name' => true, 'return_path' => false, 'from_email_force' => true, 'from_name_force' => true, ], ], $connection ); } /** * @inheritdoc */ public function display_options() { ?>' . esc_html__( 'Get API Key', 'wp-mail-smtp' ) . '' ); ?>
' . esc_html__( 'Get Sender Name', 'wp-mail-smtp' ) . '' ); ?>