Home Forums WordPress Plugins “Could Not Connect to Mail Server” with bbPress RBE

Viewing 12 reply threads
  • Author
    Posts
    • #28449
      Jeremy Freeman
      Participant

      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.

    • #28451
      vinny
      Keymaster

      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

    • #28468
      vinny
      Keymaster

      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

    • #28472
      Jeremy Freeman
      Participant

      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.

    • #28475
      Jeremy Freeman
      Participant

      In addition to the above, after replying to the notification email, our reply doesn’t show on the topic or reply.

    • #28476
      vinny
      Keymaster

      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

    • #28477
      Jeremy Freeman
      Participant

      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.

    • #28478
      vinny
      Keymaster

      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).

    • #28483
      Jeremy Freeman
      Participant

      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.
    • #28485
      vinny
      Keymaster

      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

    • #28487
      Jeremy Freeman
      Participant

      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.

    • #28489
      vinny
      Keymaster

      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.

    • #28490
      Jeremy Freeman
      Participant

      Hi Vinny,

      It looks like that is our only option. Thanks again for your assistance.

      Cheers.

Viewing 12 reply threads
  • You must be logged in to reply to this topic.