Notifications
Clear all

People replying to Private Message Email Notification

5 Posts
2 Users
0 Likes
719 Views
Posts: 12
Customer
Topic starter
(@geoff)
Member
Joined: 4 years ago

Hi, I am a relatively new user to WpForo and the Private Messages add-on.

I am coming across an interesting situation where a user is receiving the PM email notification from the system default email address, saying they have a private message. But instead of clicking on the link to get back to the conversation, many users are just replying to the email, which of course comes back to the me (default email address), conversation and all and the original PM doesn't get a response. 

Has anyone else discovered this? Is there a workaround or a setting to avoid this, like having the reply-to email address the one of the original poster?

Your ideas and help would be appreciated. BTW, this is not for the Discuz version.

4 Replies
Astghik
Posts: 5912
Admin
(@astgh)
Illustrious Member
Joined: 6 years ago

Hi @geoff,

We may suggest you change the email notification content and ask people not to reply by email. You can find and manage email notification text in the Dashboard > Forums > Settings > Addons > Private Messages admin page. 

Reply
Posts: 12
Customer
Topic starter
(@geoff)
Member
Joined: 4 years ago

@astghik Thank you for responding. This is what I have done by putting a message at the top of the email template.

A couple of things to note with this solution though:

There seems to be some layout issues with the email template where paragraph tags are being stripped out of the body content, so text all ends up in one single line. I believe this is from your coding that has a sanitize_text_field command that strips html out, but I'm not a coding expert.

I also created a new noreply email address that I added to the settings in WpForo email template settings, but your plugin does not read that field, it continues to pull the email address from I assume the admin email. It would be better if it would use the same address as wpForo emails are using, so I could use a noreply address.

Maybe there is some code I could put in the functions.php file to override these errors?

 

Reply
1 Reply
Astghik
Admin
(@astgh)
Joined: 6 years ago

Illustrious Member
Posts: 5912

@geoff,

I believe this is from your coding that has a sanitize_text_field command that strips html out, but I'm not a coding expert.

The sanitize_text_field works only for the email subject, but not for the email content. Probably the tag is not in email content. I'd sugget you try the code provided by Sofy in this post: 

https://wpforo.com/community/how-to-and-troubleshooting-2/images-in-system-emails/#post-34908

The example is for the img tag. You'll need to change the code and use the tags that are not allowed in your case.

I also created a new noreply email address that I added to the settings in WpForo email template settings, but your plugin does not read that field, it continues to pull the email address from I assume the admin email. It would be better if it would use the same address as wpForo emails are using, so I could use a noreply address.

This may be a plugin conflict. wpForo private Message addon uses the email address filled in the "FROM Email Address" filed. The field is located in the Dashboard > Forums > Settings > Emails Tab. 

Please deactivate all plugins that conacted to some hooks of the Wordpress native wp_mail() function and check again. 

Reply
Posts: 12
Customer
Topic starter
(@geoff)
Member
Joined: 4 years ago

@astghik Thanks again for your quick response. I appreciate the time you're spending on this and thank you for clarifying the sanitize code for me, as I said I'm not a coder, I just know enough to be dangerous!

{green}:scared:

I will look at the forum post you sent and see if I can modify it to allow for paragraph tags etc.

And I believe you are also correct in regards to the wp_mail function as I'm using a SMTP plugin to improve mail delivery which is probably over-riding the wpForo settings. I'm going to run some test on that.

Reply
Share:
Scroll to top