Home › Forums › WordPress Plugins › “Could Not Connect to Mail Server” with bbPress RBE
- This topic has 12 replies, 2 voices, and was last updated 2 years, 5 months ago by Jeremy Freeman.
-
AuthorPosts
-
-
April 13, 2022 at 9:29 pm #28449Jeremy FreemanParticipant
Hi,
We have just installed bbpress RBE and did a test by sending a group messsage and we hit an error immediately.
get_access_token() call failed. Google says: {
“error”: “invalid_grant”,
“error_description”: “Malformed auth code.”Support info is:
Array
(
[provider] => gmail_oauth
[type] => oAuth
[recipient] => (email address hidden)
[delete_read_messages] => 1
[last_message_epoch] => 0
[allow_images] =>
[allowed_attachments] => Array
(
)[allow_html] => 1
[max_upload_size] => 100
[max_upload_unit] => KB
[max_upload_total_size] => 300
[max_upload_total_unit] => KB
[smtp_host] =>
[smtp_port] =>
[smtp_ssl] => NO
[smtp_auth] => 0
[smtp_username] =>
[smtp_password] =>
[check_method] => webhook
[check_frequency] => 1
[trigger_url_key] => ***REDACTED***
[subscription_integration] => force_forum_subscribers
[subscribe_to_topics] => 1
[topics_by_email_enabled] => 1
[title_max_length] => 80
[oauth_access_token] => ***REDACTED***
[oauth_client_id] => (hidden)
[oauth_client_secret] => (hidden)
[reply_above_string] => If you want to reply, type it above this line
[click_to_reply_text] => Click to reply
[digests_integration_enabled] =>
[is_complete] => 1
[connection_test] => 1
[server_port_accessible] => N/A
)Your help would be appreciated. Thanks.
-
April 13, 2022 at 9:48 pm #28451vinnyKeymaster
Hi Jeremy,
I did some digging and it looks like this happens when the auth code gets encoded by Google. I’ll work on a fix and release it by Friday.
Cheers,
Vinny -
April 17, 2022 at 8:23 pm #28468vinnyKeymaster
Hi Jeremy,
I’ve released the fix in version 2.6.3. Please disconnect and reconnect the plugin from your gmail account for it to work.
Cheers,
Vinny -
April 18, 2022 at 8:58 pm #28472Jeremy FreemanParticipant
Hi Vinny,
Thanks for the update. We are no longer receiving that error message. However, I am having trouble editing the email notifications which we receive. I have checked the bbpnns plugin notification and it is not the same as what I am receiving with a Topic creation or Reply.
This is the email I am receiving:
“##-If you want to reply, type it above this line-##
Hello!
A new reply has been posted by Arianna Julie.
Topic title: Reply To: New Topic for Link CHange
Topic url: (hidden)Excerpt: Test a reply by Arianna.”
Whereas this is the ‘Email Body’ in bbpnns settings:
“Hello!
A new reply has been posted by [reply-author].
Topic title: [reply-title]
Topic url: [reply-url]Excerpt:
[reply-excerpt]”As you can see, there is no ‘Reply-To’ in bbpnns’s setting. Is the former notification being generated by the RBE plugin? If so, how do we edit it?
Cheers.
- This reply was modified 2 years, 5 months ago by Jeremy Freeman.
- This reply was modified 2 years, 5 months ago by Jeremy Freeman.
-
April 18, 2022 at 9:02 pm #28475Jeremy FreemanParticipant
In addition to the above, after replying to the notification email, our reply doesn’t show on the topic or reply.
-
April 19, 2022 at 8:39 am #28476vinnyKeymaster
Hi Jeremy,
There are two plugins at play here: bbpnns and bbpnns-rbe.
bbpnns sends out the notifications based on the templates that you provided. While preparing to send out the notifications, the RBE plugin does two things: a) Injects the reply-above string (which you can edit in the RBE settings); b) Injects reply-to headers in the email.
As for email replies showing in the forums, you need to set RBE up to either run with WP Cron or with webhooks + a real cron job.
Please read the From Email to Forums section of the documentation to have a better understanding of what needs to be done:
https://usestrict.net/bbpress-notify-no-spam-reply-by-email-documentation/#from-email-to-forums
Let me know if you need further help and I’ll gladly clarify any doubts.
Cheers,
Vinny -
April 19, 2022 at 10:25 am #28477Jeremy FreemanParticipant
Hi Vinny,
Thanks for your reply. How do we edit the ‘reply-to’ added to the bbpnns notifications – in particular the reply-link. Is there a setting in the RBE plugin to do this or a code snippet I can use?
Cheers.
-
April 19, 2022 at 11:44 am #28478vinnyKeymaster
Go to Admin > Settings > bbPress Notify (No-Spam) – Reply by Email Settings > General Tab > Message Preferences (second box from the top, just below the connection box).
-
April 19, 2022 at 4:53 pm #28483Jeremy FreemanParticipant
Hi Vinny,
All that box has is the option to edit the reply-above string. I am wanting to edit the ‘Reply-To’ link that is being sent in the notification which isn’t being added by the bbppns plugin.
Attachments:
You must be logged in to view attached files. -
April 19, 2022 at 6:06 pm #28485vinnyKeymaster
Oh, you mean the one in the topic title line?
You’re getting that because you’re using [reply-title] instead of [topic-title]. “Reply To” in the title is set by bbPress.
Note that there is a set of [reply-…] and [topic-…] tags. They print out different things.
I explain each one in https://usestrict.net/bbpress-notify-no-spam-documentation/#topics-tab and https://usestrict.net/bbpress-notify-no-spam-documentation/#replies-tab.
Cheers,
Vinny -
April 19, 2022 at 8:39 pm #28487Jeremy FreemanParticipant
Thanks for those links Vinny.
That would mean that the link would be uneditable if ‘Reply To: New Topic for Link CHange’ is set by bbPress. That is a real shame as that was what we were needing to do. Those links look awful. :-/
Your prompt and friendly support is much appreciated. Thank you.
-
April 20, 2022 at 9:05 am #28489vinnyKeymaster
Alas, the title isn’t editable as it’s provided by bbPress. That said, if you use [topic-title] instead of [reply-title], it will not have the ‘Reply to:’ part.
-
April 20, 2022 at 10:42 am #28490Jeremy FreemanParticipant
Hi Vinny,
It looks like that is our only option. Thanks again for your assistance.
Cheers.
-
-
AuthorPosts
- You must be logged in to reply to this topic.