Bruno Marquette

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
Sep 26, 2024 at 3:24 pm
#199748
Participant
Bruno Marquette
OP

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

Sep 26, 2024 at 2:44 pm
#199745
Participant
Bruno Marquette
OP

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

Sep 26, 2024 at 2:36 pm
#199743
Participant
Bruno Marquette
OP

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.

Sep 26, 2024 at 1:54 pm
#199742
Participant
Bruno Marquette
OP
This reply has been marked as private.
Viewing 4 posts - 1 through 4 (of 4 total)