Skip to content

Commit c0062e9

Browse files
committed
update wording
1 parent b5d1cbd commit c0062e9

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

classes/suggested-tasks/providers/interactive/class-email-sending.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ public function init() {
111111
\add_action( 'init', [ $this, 'check_if_wp_mail_is_filtered' ], PHP_INT_MAX );
112112
\add_action( 'init', [ $this, 'check_if_wp_mail_has_override' ], PHP_INT_MAX );
113113

114-
$this->email_subject = \esc_html__( 'Test email from Progress Planner', 'progress-planner' );
115-
// translators: %s is the admin URL.
116-
$this->email_content = sprintf( \esc_html__( 'This is a test email. Complete the task by clicking the link: %s', 'progress-planner' ), \admin_url( 'admin.php?page=progress-planner&prpl_complete_task=' . $this->get_task_id() ) );
114+
$this->email_subject = \esc_html__( 'Your Progress Planner test message!', 'progress-planner' );
115+
// translators: %s the admin URL.
116+
$this->email_content = sprintf( \esc_html__( 'You just used Progress Planner to verify if sending email works on your website. The good news; it does! Click %s to mark Ravi\'s Recommendation as completed.', 'progress-planner' ), '<a href="' . \admin_url( 'admin.php?page=progress-planner&prpl_complete_task=' . $this->get_task_id() ) . '" target="_blank">' . \esc_html__( 'here', 'progress-planner' ) . '</a>' );
117117
}
118118

119119
/**
@@ -131,7 +131,7 @@ public function get_title() {
131131
* @return string
132132
*/
133133
public function get_description() {
134-
return \esc_html__( 'Test if your website can send emails correctly', 'progress-planner' );
134+
return \esc_html__( 'Your website tries to send you important email. Test if sending email from your site works well.', 'progress-planner' );
135135
}
136136

137137
/**
@@ -222,7 +222,9 @@ public function ajax_test_email_sending() {
222222
wp_send_json_error( \esc_html__( 'Invalid email address.', 'progress-planner' ) );
223223
}
224224

225-
$result = wp_mail( $email_address, $this->email_subject, $this->email_content );
225+
$headers = [ 'Content-Type: text/html; charset=UTF-8' ];
226+
227+
$result = wp_mail( $email_address, $this->email_subject, $this->email_content, $headers );
226228

227229
if ( $result ) {
228230
wp_send_json_success( \esc_html__( 'Email sent successfully.', 'progress-planner' ) );
@@ -317,7 +319,7 @@ public function the_popover_content() {
317319
printf(
318320
/* translators: %s is a link to the troubleshooting guide. */
319321
\esc_html__( 'There are a few common reasons why your email might not be sending. Check the %s to find out what’s causing the issue and how to fix it.', 'progress-planner' ),
320-
'<a href="#" target="_blank">' . \esc_html__( 'troubleshooting guide', 'progress-planner' ) . '</a>'
322+
'<a href="https://prpl.fyi/troubleshoot-smtp" target="_blank">' . \esc_html__( 'troubleshooting guide', 'progress-planner' ) . '</a>'
321323
);
322324
?>
323325
</p>

0 commit comments

Comments
 (0)