majkimajki you need to install @beta
and not *
as a version constrain - as stated in the initial post.
Blomstra Email Conversations: post via email to your Flarum forum
OK, thanks.
But I'm getting:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires blomstra/email-conversations @beta -> satisfiable by blomstra/email-conversations[0.1.0-beta.1, 0.1.0-beta.2, 0.1.0-beta.3, 0.1.0-beta.4].
- blomstra/email-conversations[0.1.0-beta.1, ..., 0.1.0-beta.4] require php 8.0 -> your php version (7.3.33) does not satisfy that requirement.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
[hempinve@s47 tajemnicenatury]$ php --version
PHP 8.1.8 (cli) (built: Jul 14 2022 10:33:21) (NTS)
Which is quite weird to be honest, as I'm using 8., and flarum dashboard also confirms the php version.
Any ideas?
majkimajki guess that you are using a different version for cli then you are using for the actual hosting. You would need to check your hosting settings.
Still no luck, any ideas?
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires blomstra/email-conversations @beta -> satisfiable by blomstra/email-conversations[0.1.0-beta.1, 0.1.0-beta.2, 0.1.0-beta.3, 0.1.0-beta.4].
- blomstra/email-conversations[0.1.0-beta.1, ..., 0.1.0-beta.4] require blomstra/conversations @beta -> found blomstra/conversations[dev-master, 0.1.0-beta.1, 0.1.0-beta.2] but it does not match your minimum-stability.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
The issue is within the log you have posted. The minimum stability in your composer.json
is set to stable. It should be beta
to use this.
- Edited
composer config minimum-stability beta
composer config prefer-stable true
composer require blomstra/email-conversations:"*@beta"
That should allow beta's to be installed while still forcing stable packages for everything else.
Hi,
I've managed to work everything out, but I cannot find anything in the logs.
After sending an email to the verified address no new disscusion is made.
Any tips?
majkimajki do you see the configured incoming route in the mail section of the admin panel, or is it prompting to set one up? {FORUM_URL}/admin#/mail
Hi, mailgun gives me: "event": "stored" in the emails it receives.
As for your questions I clicked the button to generate, now I have:
Incoming Mailgun route
6........................d - Blomstra Email Conversations incoming route
majkimajki excellent, try sending a mail to the forum now that the route is fully setup - do you see a new discussion now?
No. No new disscusions appear.
I've used; Additional email addresses, and verified this address, and also tried sending from a different one.
majkimajki Additional email addresses is not something that has been tested with this feature just yet, so I'm not sure if that will function correctly or not.
The outgoing email address as configured already in Flarum is used to setup the incoming route when the Generate
button is clicked. Can you try sending a mail to that address to see if that works for you?
Here, admin#/mail I have: email@test.com
In the mailgun page app.eu.mailgun.com/app/receiving/routes/ I have, match_recipient('email@test.com')
I'm sending emails to email@test.com, mailgun gives event store.
But no new disscusions show up, any way to debug this?
majkimajki I have a feeling the routes are somehow incorrect, let's test that as the first step..
- Go to https://app.eu.mailgun.com/app/receiving/routes
- Scroll down to
Enter a URL to receive a sample webhook of a fully parsed message as an HTTP POST.
- Enter
{YOUR_FORUM_URL}/api/email/receive
- Click
Post
What is the response you see there?
IanM You are right.
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Unauthorized</title>
</head><body>
<h1>Unauthorized</h1>
<p>This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<p>Additionally, a 401 Unauthorized
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>
majkimajki I have, match_recipient('[email@test.com](mailto:email@test.com)')
actually, did you create this yourself, or is this what Flarum created for you?
IanM I've changed it, the actual address is different.
- Edited
OK the problem was a passwd for the whole website.
Now I can reply to a disscusion via mail.
But still can't make a new discusion when sending an email.
IanM This is what the generate button created in mailgun.
majkimajki yes I understand that.
The entry in mailgun should be similar to this:
match_recipient("email@test.com") Priority: 0
store(notify="https://my.forum.com/api/email/receive")
The notifiy
is critical...