get_connections_manager()->get_primary_connection();
}
$description = sprintf(
wp_kses(
/* translators: %1$s - URL to mailersend.com; %2$s - URL to MailerSend documentation on wpmailsmtp.com. */
__( 'MailerSend is a reliable transactional email provider with powerful features. They offer 12,000 emails per month for free and have affordable plans for higher volumes. Their modern API and excellent deliverability make them a great choice for WordPress sites.
To get started, read our MailerSend documentation.', 'wp-mail-smtp' ),
[
'strong' => [],
'br' => [],
'a' => [
'href' => [],
'rel' => [],
'target' => [],
],
]
),
esc_url( 'https://mailersend.com/' ),
// phpcs:ignore WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound
esc_url( wp_mail_smtp()->get_utm_url( 'https://wpmailsmtp.com/docs/how-to-set-up-the-mailersend-mailer-in-wp-mail-smtp/', 'MailerSend Documentation' ) )
);
parent::__construct(
[
'logo_url' => wp_mail_smtp()->assets_url . '/images/providers/mailersend.svg',
'slug' => self::SLUG,
'title' => esc_html__( 'MailerSend', 'wp-mail-smtp' ),
'description' => $description,
'supports' => [
'from_email' => true,
'from_name' => true,
'return_path' => false,
'from_email_force' => true,
'from_name_force' => true,
],
],
$connection
);
}
/**
* Output the mailer provider options.
*
* @since 4.5.0
*/
public function display_options() {
$get_api_key_url = 'https://app.mailersend.com/api-tokens';
?>
' . esc_html__( 'Get API Key', 'wp-mail-smtp' ) . '' ); ?>
' . esc_html__( 'pricing page', 'wp-mail-smtp' ) . '' ); ?>