Your software My PHP version is : 7.4.20
*My MySQL/MariaDB version is:
mariadb 10.3
Hostinger
SMTP Amazon SES
Hi guys!
I’ve installed the Mautic 4 and everything went well.
I’ve build some emails and got some problems with gmail formatting/styles, then I read that it must be inline css and also no external css files.
So I’ve done some simple emails with basically an image + button and it’s not working as it should. It seems that no formatting are being done to the elements of the email (not even texts).
But same thing happened, my email formatting is being erased at gmail
Inside mautic the preview is working just fine. I’ve build my emails in many platforms in order to test it, but the results are always the same. The last one was build inside sendgrid
There are no error inside the log file.
What could this be? I’ve reinstalled the Mautic in another domain and I’m getting the same error.
Hello!
Can you please check if you have the same HTML?
Open the letter in Gmail - 3 dots o the side rightclick - show original
What do you see if you compare?
I’ve done what you mentioned and noticed that for some reason the head tag is not closing, nor the body is opening (at least it’s what I noticed, I’m not that good with coding in general haha):
I’ll take a look later.
The html doesn’t makes sense to you because it’s printed encoded. You need to copy the text add it to the bottom form here: https://www.webatic.com/quoted-printable-convertor
An hit decode
I fixed this accidentally. Not sure how. But I think the theme file I was using for email was named “email.html.twig” when it should be “email.mjml.twig”.
Then I had the other error that I couldn’t save the email in the builder. Editing the code in the builder and removing all references to “id=” fixed that issue.
I got a quick work around for this to update the html code after creating a email sendout directly in sql table.
SELECT * FROM emails WHERE id = 40 ( id you can check in URL when you open the email in mautic), then edit the custom_html column data.
NOTE: We should not open builder after this, else it will update the html code again.
WYSIWYG are notorious for conflicting code since always. With that said I wouldn’t expect a “fix” within the next decade (sorry, not much helpful on that part).
The best I could suggest would be to clean your code before sending it.
I would also suggest to drop the CSS modern “best practice” and embrace web 1.0 CSS “best practice” (do not use CSS in the head for a starter).
Thanks for your reply. Still new to Mautic so learning more. Mjml is the key, so much better than writing html with with inline css.
I think one thing that Mautic still needs a freshing up in design the UI is not that good and how data is structured is a bit messy. But i al grateful for such amazing product, great community too.
I appreciate your reply