wp_mail_smtp()->plugin_url . '/assets/images/gmail.png',
'slug' => 'gmail',
'title' => esc_html__( 'Gmail', 'wp-mail-smtp' ),
'description' => sprintf(
wp_kses(
/* translators: %1$s - opening link tag; %2$s - closing link tag. */
__( 'Send emails using your Gmail or G Suite (formerly Google Apps) account, all while keeping your login credentials safe. Other Google SMTP methods require enabling less secure apps in your account and entering your password. However, this integration uses the Google API to improve email delivery issues while keeping your site secure.
Read our %1$sGmail documentation%2$s to learn how to configure Gmail or G Suite.', 'wp-mail-smtp' ),
array(
'br' => array(),
'a' => array(
'href' => array(),
'rel' => array(),
'target' => array(),
),
)
),
'',
''
),
'php' => '5.5',
)
);
}
/**
* @inheritdoc
*/
public function display_options() {
// Do not display options if PHP version is not correct.
if ( ! $this->is_php_correct() ) {
$this->display_php_warning();
return;
}
?>
get_all(); if ( $options->get( 'mail', 'mailer' ) === 'gmail' ) { foreach ( $old_opt['gmail'] as $key => $value ) { if ( ! in_array( $key, array( 'client_id', 'client_secret' ), true ) ) { unset( $old_opt['gmail'][ $key ] ); } } } $options->set( $old_opt ); } }