Softwr

Mobile Development · head to head

Apache Cordova vs MJML

Apache Cordova logo

Apache Cordova

Mobile Development

Open source framework for wrapping HTML, CSS and JavaScript apps as mobile apps

From
Free
Free plan
Yes
M

MJML

Mobile Development

Open-source markup language that compiles to responsive HTML email

From
Free
Free plan
Yes

The short version

  • Both are free.
  • Only Apache Cordova lists targets iOS, Android and Electron; only MJML lists semantic components.
  • Where Apache Cordova falls short: apps render in a web view, so UI is not native by default.
  • Where MJML falls short: it is a code framework, so marketers without HTML knowledge cannot use it without a developer or a separate editor.

How do Apache Cordova and MJML differ?

Apache Cordova and MJML differ on pricing model and platforms. Only the attributes on which Apache Cordova and MJML actually diverge.

Attributes where Apache Cordova and MJML differ
AttributeApache CordovaMJML
Pricing modelOpen-sourceOpen source, no licence fee
PlatformsiOS, Android, Windows, macOS, LinuxWeb, macOS, Windows, Linux, API

Identical on both: starting price (Free), free tier (Yes).

Not yet recorded: category for MJML, founded for MJML.

Which features does each one have?

They share no listed features; 6 appear only for Apache Cordova and 6 only for MJML. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Apache Cordova

  • Single JavaScript API for device functions
  • Plugin system managed from the command line
  • Targets iOS, Android and Electron
  • HTML, CSS and JavaScript app code
  • Apache 2.0 open source licence
  • Platform feature support documentation

Only in MJML

  • Semantic components
  • Responsive by default
  • Custom components
  • Compiler to HTML
  • Open source
  • Online playground

What is each one used for?

Apache Cordova is most often brought in for wrapping an existing web app as a mobile app; MJML for A development team keeping email templates in git and compiling them in CI. The jobs each tool is most often brought in to do.

Apache Cordova

  • Wrapping an existing web app as a mobile appnot MJML
  • Single codebase for iOS and Androidnot MJML
  • Prototyping mobile apps with web skillsnot MJML
  • Accessing device features from JavaScript through pluginsnot MJML

MJML

  • A development team keeping email templates in git and compiling them in CInot Apache Cordova
  • Transactional email with shared layouts across many message typesnot Apache Cordova
  • An agency building reusable email components for several clientsnot Apache Cordova
  • Developers who want Outlook-safe layouts without hand-writing tablesnot Apache Cordova

Where do Apache Cordova and MJML fall short?

Apache Cordova's most cited limit: apps render in a web view, so UI is not native by default. MJML's: it is a code framework, so marketers without HTML knowledge cannot use it without a developer or a separate editor. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Apache Cordova

  • Apps render in a web view, so UI is not native by default
  • No built-in UI component library or hosted build service
  • Adobe's PhoneGap Build cloud service was discontinued in 2020
  • Many platforms listed in older versions, such as BlackBerry and Tizen, are no longer supported

MJML

  • It is a code framework, so marketers without HTML knowledge cannot use it without a developer or a separate editor
  • It does not send or host email, so you need an ESP and a preview tool such as an email testing service alongside it
  • Output is table-based HTML that is larger and harder to read than hand-crafted markup, which makes manual debugging of client quirks slower
  • Custom components need JavaScript knowledge, so extending it is not a no-code task
  • Origins in Mailjet and now Sinch mean the project direction depends on a vendor whose main business is selling email delivery, not maintaining the framework

How much do Apache Cordova and MJML cost?

Apache Cordova is free to use; MJML is free to use. Plan by plan below, from each vendor's own pricing page.

Apache Cordova

Free

No published plan breakdown. See the Apache Cordova review.

MJML

Free
  • MJMLFree
    • Open-source framework
    • No licence fee
    • Community support

Which should you pick?

Choose Apache Cordova if

  • You need single javascript api for device functions.
  • You want to start without paying.
  • You work on iOS, Android, Windows, macOS, Linux.
  • You also want plugin system managed from the command line.

Choose MJML if

  • You need semantic components.
  • You want to start without paying.
  • You work on Web, macOS, Windows, Linux, API.
  • You also want responsive by default.

Questions people ask

Is Apache Cordova or MJML better?
It depends on the job. Apache Cordova fits wrapping an existing web app as a mobile app; MJML fits a development team keeping email templates in git and compiling them in CI. Apache Cordova starts at Free and MJML at Free.
Which is cheaper, Apache Cordova or MJML?
Apache Cordova starts at Free and MJML at Free.
Does Apache Cordova or MJML run on more platforms?
Apache Cordova runs on iOS, Android, Windows, macOS, Linux. MJML runs on Web, macOS, Windows, Linux, API.
Can I use Apache Cordova for free?
Both have a free tier, so you can try either at no cost before committing.
What is Apache Cordova best used for?
Apache Cordova is most often used for wrapping an existing web app as a mobile app, single codebase for ios and android, prototyping mobile apps with web skills, accessing device features from javascript through plugins. Of those, wrapping an existing web app as a mobile app and single codebase for ios and android are not what MJML is typically brought in for.
What can Apache Cordova do that MJML cannot?
Apache Cordova covers Single JavaScript API for device functions, Plugin system managed from the command line, Targets iOS, Android and Electron, HTML, CSS and JavaScript app code. MJML covers Semantic components, Responsive by default, Custom components, Compiler to HTML.

Answered from the vendors’ own pages

Apache Cordova: Is Apache Cordova free?

Yes. The project describes itself as free and open source under the Apache License 2.0, maintained by the Apache Software Foundation.

Source
MJML: Is MJML free?

Yes. It is open source with no licence fee.

Apache Cordova: How is Cordova related to PhoneGap?

Nitobi Software developed PhoneGap in 2008 and Adobe acquired Nitobi in October 2011. The code was contributed to Apache and renamed Cordova.

Source
MJML: Does MJML send email?

No. It compiles markup to HTML; you send it with an ESP.

Apache Cordova: Which platforms does Cordova support?

As of version 11, iOS, Android, Windows 8.1, Windows Phone 8.1, Windows 10 and Electron are listed on Wikipedia. The project site has a page of per-platform feature support.

Source
MJML: Who created MJML?

Developers at Mailjet, in early 2015.

MJML: Does it work with Outlook?

Its output is built to be responsive in the most popular clients, including Outlook.

Share

Related pages

Other head to heads