Forum Replies Created
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
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
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.