Bruno Marquette

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
in reply to: No email on reply #199748

Bruno Marquette
Participant

The SMTP works well, with my correction below, I do receive the emails, except for the template which displays sender_name and view_msg_url in raw text and they are not being interpreted

File: wp-content/plugins/private-message/src/Message/RestAPI.php method createReply() line 790


// $to_email    = ( user_can( $mail_receiver, 'manage_options' ) ) ? $admin_email : $mail_receiver->user_email;
$to_email    = $mail_receiver?->user_email;

if (!$to_email) {
    return;
}

I don’t understand why the administrators receive the response emails; it’s surprising that you haven’t had any feedback on this issue. For now, my correction is sufficient, but we will have to modify the code with every update.

If you have any idea about the issue of the parameters not being interpreted in the email templates, I would appreciate it.

Thank you for your help

in reply to: No email on reply #199745

Bruno Marquette
Participant

I came across something in the createReply() method, there’s this line:

$to_email = ( user_can( $mail_receiver, ‘manage_options’ ) ) ? $admin_email : $mail_receiver->user_email;

Why does the person we are replying to need to have the manage_options capability? Is there a reason for this? I only want the recipient to receive an email notification indicating that they have received a reply

in reply to: No email on reply #199743

Bruno Marquette
Participant

I just noticed that the email associated in createReply() is not the right one, It’s sending to another address instead of the one linked to the account. It’s a first step forward, though quite strange.

in reply to: No email on reply #199742

Bruno Marquette
Participant
This reply has been marked as private.
Viewing 4 posts - 1 through 4 (of 4 total)