analytics
analytics copied to clipboard
Bamboo.Mua configuration fix for some mailing servers
Past Issues Searched
- [X] I have searched open and closed issues to make sure that the bug has not yet been reported
Issue is a Bug Report
- [X] This is a bug report and not a feature request, nor asking for self-hosted support
Using official Plausible Cloud hosting or self-hosting?
Self-hosting
Describe the bug
Hello,
I recently migrated Plausible from version 2.0.0 to 2.1.0 (and now 2.1.1), and thus switched to Bamboo.Mua.
Since then, I have been encountering problems with receiving Plausible emails, which have become impossible.
To debug the issue, here are the commands I executed:
email = Bamboo.Email.new_email(from: PlausibleWeb.Email.mailer_email_from(), to: "[email protected]", subject: "test html_body", html_body: "test html_body")
Plausible.Mailer.deliver_now(email)
email = Bamboo.Email.new_email(from: PlausibleWeb.Email.mailer_email_from(), to: "[email protected]", subject: "test text_body", text_body: "test text_body")
Plausible.Mailer.deliver_now(email)
email = Bamboo.Email.new_email(from: PlausibleWeb.Email.mailer_email_from(), to: "[email protected]", subject: "test text_body html_body", text_body: "test text_body html_body", html_body: "test text_body html_body")
Plausible.Mailer.deliver_now(email)
To be sure of my results, I performed these commands each time with two different destination emails. In all cases :
- The logs returned by the console do not indicate any errors and return a table of this type :
{:ok,
%Bamboo.Email{
from: {"xxx", "[email protected]"},
to: [nil: "[email protected]"],
cc: [],
bcc: [],
subject: "test text_body html_body", <==== depending of command
html_body: "test text_body html_body", <==== depending of command
text_body: "test text_body html_body", <==== depending of command
headers: %{},
attachments: [],
assigns: %{},
private: %{},
blocked: false
}}
- Only emails sent with both the
text_body
andhtml_body
parameters (and not just one or the other) are correctly delivered. I deduce that on the Plausible side, one of the two parameters is not defined at the time of sending.
I discussed this issue on this link: https://github.com/plausible/analytics/discussions/4125#discussioncomment-9572216 However, I do not have the technical skills to correctly modify and debug the file https://github.com/plausible/analytics/blob/v2.1.0/lib/plausible_web/email.ex
As a mail server, I am using the SMTP from OVHcloud (https://www.ovhcloud.com/), which is the leading French hosting solutions provider. Therefore, a significant player in the web ecosystem.
Would it be possible to make this modification?
Expected behavior
Receive emails
Screenshots
No response
Environment
- OS: Debian 12
- Plausible environment: Docker
- Browser: Chromium
- Browser Version: 126.0.6478.61