Your software
My Mautic version is: 4.0.1
My PHP version is: 8.0.11
My Database type and version is: mysql 8.0.26
Your problem
My problem is:
I’m a newcomer. I recieve only garbled mails without content or no mail. I tried it with “Other SMPT Server” and Sendmail. For Sendmail i use msmtp and it’s working with pure php
php -r “mail(‘reciever@testmail.example’,‘Test Mail from PHP’, ‘This is a test mail from PHP, let me know if this works’);”
Also the Testmail from the Configuration is working. The server is in a closed network, only with proxy for internet access. So I also interested in image to base64 conversation, because the reciever need a vpn connect, to get access to the server and also to linked images.
These errors are showing in the log:
msmtp.log show only the manual test’s with command line
with Image to base64 active, I got the error from apache
mautic.ERROR: [MAIL ERROR] Unable to open file for reading
var/logs/mautic_prod-2021-10-15.php
mautic.ERROR: An error occurred while attempting to fetch the language list: cURL error 56: Received HTTP code 403 from proxy after CONNECT (see libcurl - Error Codes) for https://language-packs.mautic.com/manifest.json
Steps I have tried to fix the problem: I tried several configuration with smtp server. I didn’t find any useful debug information for the mail, so i don’t have an ideas what i could do. I didn’t find alike problem with a closed network.
i don’t have cronjobs with this first test. There are only 5 Testemails
Done, although this was not the problem.
but with yout hint bring me to the real problem, the dns…the server didn’t know his own Domain Name, so swiftmailer can’t find the picture, because the domain is unknown. A little hosts Update solved the problem with the pictures.
i don’t know why it didn’t choose the right pem file, like before, but you can choose it by yourself with the enviroment variable “set SSL_CERT_FILE=/etc/ssl/certs/TRUST-ME-CA_2021.pem”