frappe / frappe_docker

Docker images for production and development setups of the Frappe framework and ERPNext
MIT License
1.48k stars 1.38k forks source link

How to test emails with mailpit #1446

Closed giulio-perosino closed 1 month ago

giulio-perosino commented 3 months ago

Hello, I'm attempting to enable the Mailpit service. I have successfully initiated the container and can access the GUI on port 8025. The documentation in docs/development.md lacks of instructions so has left me perplexed about the next steps. How do I configure my Frappe instance to connect with the Mailpit service?

Thank you.

WebsiteDeveloper commented 3 months ago

You have to setup an outgoing email account with the server as "mailpit" and the port as 1025

giulio-perosino commented 3 months ago

Hello @WebsiteDeveloper, thank you for the assistance. To create an outgoing email account, I need to set up a domain, but I'm unsure about the values that need to be entered.

image

If I use "mailpit" as incoming and outgoing server and 1025 as port Frappe throws an error: frappe.exceptions.ValidationError: Error connecting via IMAP/POP3: b'220 ff15acf9ec27 Mailpit ESMTP Service ready'

WebsiteDeveloper commented 3 months ago

You can only use mailpit as an outgoing server per default which you need to configure in the E-Mail Account Doctype not in E-Mail Domain If you want to use incoming Mails you would need to change the mailpit config see https://mailpit.axllent.org/docs/configuration/pop3/

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale. You have a week to explain why you believe this is an error.