I’m facing an issue with fetching PDF files from a specific email address (dev.provider@company.com on IONOS) and transferring them into the Tryton interface using the document_incoming module.
Here’s what I’ve done so far:
Activated the modules: inbound_email, document_incoming, and document_incoming_ocr, document_incoming_invoice.
Generated an application key from Administration → Applications, selected Incoming Document, and validated it through the interface.
In the Inbound Email menu, I created a rule and generated a URL (since I’m working on localhost, I used a temporary ngrok link).
Rule details:
Name: TEST Rechnung
Origin: (empty)
Destination: dev\.provider@company\.com
Subject: Rechnung
Attachment Name: \.pdf$
Headers: (empty)
Action: Incoming Document
After setting this up, I tested by sending an email with a PDF attachment to dev.provider@company.com. However, nothing happened — no PDF was transferred into the Tryton interface.
My question: Is there an additional step I might have missed that prevents the email from being processed and the PDF from being imported into Tryton?
Hi Mr@ced, No, The emails does not appear in Administration → Models → E-mails.
I also did a small test, I tested the /document_incoming endpoint separately with a PDF using curl command and -H “Authorization: Bearer key” and I found the file on incoming documents menu
I didn’t find such menu in my tryton interface , here is the screenshoot of the menus I have and what I found under menu Administration / Inbound Email / Inbox(I found just the record that I created) , could u tell me the exact path where I should go to verify ???
Hi again , I get you now, after select the record “Rechnung pdf” that i created already as exist in screesnshoot in Inboud Email/inbox I click on relate menu, I don’t found any emails details there , the inbox is empty
Connections ttl opn rt1 rt5 p50 p90
468 0 0.00 0.01 0.04 0.21
HTTP Requests
16:06:39.004 CET POST /tryton_database/inbound_email/inbox/9b2afec8f2a747a2b9c723ff4ea10c6d 204 NO CONTENT
16:03:27.944 CET POST /tryton_database/inbound_email/inbox/9b2afec8f2a747a2b9c723ff4ea10c6d 500 INTERNAL SERVER ERROR
15:59:24.329 CET GET /favicon.ico 405 METHOD NOT ALLOWED
15:59:24.124 CET GET /tryton_database/inbound_email/inbox/ 405 METHOD NOT ALLOWED
15:59:18.142 CET GET /favicon.ico 405 METHOD NOT ALLOWED
15:59:17.877 CET GET /tryton_database/inbound_email/inbox/9b2afec8f2a747a2b9c723ff4ea10c6d 405 METHOD NOT ALLOWED
15:59:07.214 CET POST /tryton_database/ 200 OK
when I try to see the url endpoint generated automatically durning create inbound email record it say Method not allowed
I tested again by sending an email at 08:58, but this time there is no request to the inbound email endpoint in the terminal logs.
When I open the generated inbound email URL directly in the browser, I get 405 METHOD NOT ALLOWED, which I understand is because the browser sends GET while the endpoint expects POST.
I have not configured IONOS to make a POST request to the generated Tryton endpoint. I only have the IONOS email address and the Tryton Inbound Email endpoint configured. Could this be the missing part? What should be used to fetch the email from IONOS and POST the raw email to the Tryton endpoint?
IONOS is not supported. But as far as I see it is not a transactional email provider but just an hosting service.
I’m not sure it is the proper provider for inbound email.
Any way, you will have to write your own script to fetch email and post them if you want to use IONOS.