$this->description=__('The Mail Check will invoke the <code>wp_mail()</code> function and check if it succeeds. We will use the E-mail address you have set up, but you can change it below if you like.','health-check');
$email_subject=sprintf(esc_html__('Health Check – Test Message from %s','health-check'),$wp_address);
$email_body=sprintf(
// translators: %1$s: website name. %2$s: website url. %3$s: The date the message was sent. %4$s: The time the message was sent.
__('Hi! This test message was sent by the Health Check plugin from %1$s (%2$s) on %3$s at %4$s. Since you’re reading this, it obviously works.','health-check'),
$wp_name,
$wp_address,
$date,
$time,
$email_message
);
if(!empty($email_message)){
$email_body.="\n\n".sprintf(
// translators: %s: The custom message that may be included with the email.
__('Additional message from admin: %s','health-check'),
$output.=__('We have just sent an e-mail using <code>wp_mail()</code> and it seems to work. Please check your inbox and spam folder to see if you received it.','health-check');