Questions tagged [mjml]

MJML is built using the React.js framework to generate responsive HTML emails for multiple mail clients.

144 questions
2
votes
1 answer

Output option not working in MJML

I have written a gulp task to convert mjml file to html on change. Here is the code: gulp.task('mjml:dev', function () { return gulp.src(paths.mjmlWatch, {base: "./"}) .pipe(mjml(mjmlEngine, { output: '.phtml' })) …
ziishaned
  • 4,944
  • 3
  • 25
  • 32
2
votes
1 answer

Landscape/portrait images in email

I'm writing an email via Ruby on Rails and MJML framework, and have different images I want to include with it. Currently the images are hosted on S3 and we source them in the HTML. Some of them are landscape and some are portrait, and thus should…
serj
  • 508
  • 4
  • 20
1
vote
0 answers

Grapesjs with plugin Ckeditor show over my text

This is my code for Grapesjs editor: Title
step
  • 2,254
  • 2
  • 23
  • 45
1
vote
1 answer

MJML mj-image fill height of container

I'm building an email template with MJML This is the requested layout. This is what I have now. I need the image to fill the height of the container so that it has the same height as the other column with the text. This is the code I'm working…
banjug
  • 45
  • 1
  • 5
1
vote
1 answer

Is there a way to tell Prettier that the following "block" has a specific markup type?

I'm having issues using mjml where I want to specify inline CSS, but it's currently not supported by Prettier as far as I could tell. The only way I found how to bypass this is using but mjml is expecting this to be a CSS…
Nicolas Bouvrette
  • 4,295
  • 1
  • 39
  • 53
1
vote
0 answers

NodeJS function on AWS Lambda with mjml returns undefined

I´m implementing an Serverless stack on AWS with a Lambda function that submits an email formatted with MJML library in HTML format. When trying to isolate the issue, I´ve created a simple function with the next code that runs on AWS lambda and it…
Markussen
  • 164
  • 1
  • 13
1
vote
0 answers

MJML converts links in email clients to mjt.lu

Laravel-mix-mjml plugin converts href links. All links work fine except one link which is a form with post request. It doesn't pass the parameters. In the browser the links are not converted. How can I fix this? Thanks
Anton Bergen
  • 43
  • 1
  • 5
1
vote
0 answers

Mjml image does not show up in my mail box in mobile

I have to build a template to send for mail using mjml with jinja2 template. I have inserted an image. After sending the mail the image only shows up in the Gmail web version, mobile version (Gmail app) the image can't load (it display a blue box…
DINA TAKLIT
  • 7,074
  • 10
  • 69
  • 74
1
vote
1 answer

AWS SES breaks an email styles

I have a bunch of emails which are written using MJML. The output HTML seems to be correct. As an email sender, I'm using AWS SES. But after sending, all my CSS styles in an email are broken. To send an email, I'm using method ses.sendEmail. I have…
Ivan Banha
  • 753
  • 2
  • 12
  • 23
1
vote
0 answers

MJML Font issue - mj-font not loads font in actual Email Template

I am trying to use Google "Inter" Font in my MJML Template. I have used mj-font, which is simple and should work with google fonts. In MJML Online Editor everything works fine, but in actual Email Template font is not working. Here is short…
David
  • 63
  • 4
1
vote
1 answer

Is it possible to set a container or wrapper width with mjml?

I'm using mjml to create HTML emails, and it looks like the default container width is set to 600px. I need this to be wider, is it possible to either override the 600px default, or setup a wrapper or container div where I can adjust the width?
jfc
  • 361
  • 3
  • 15
1
vote
2 answers

Large Gap on content in mj-table

I'm using a table to hold the content of a mailshot I'm working, I'm doing so because I'm trying to maintain a newspaper-esque style. However under the '11 November at 6pm' head on the right hand side, there is a large gap that I'm struggling to…
akezd
  • 97
  • 11
1
vote
1 answer

CSS media query not working in HTML email

When I build an email I use media queries for adjusting the style for smartphones. The problem is if I look at the .html file on the browser everything is working fine, but when I send a test mail to my phone every style that's set within the media…
PlanB
  • 71
  • 1
  • 7
1
vote
1 answer

Transparant image to see colored background

I need to recreate this: The gradient background must be seen through the shape of an image. But I don't know exactly how. What I got now:
PlanB
  • 71
  • 1
  • 7
1
vote
1 answer

mjml align mj-wrapper background-position to the right

I'm trying without succes to align the background-position for an mj-wrapper to the right but I don't know how to do it. Here is my code:
Bizboss
  • 7,792
  • 27
  • 109
  • 174
1 2
3
9 10