{"id":1805,"date":"2017-03-07T09:17:23","date_gmt":"2017-03-07T09:17:23","guid":{"rendered":"https:\/\/www.botreetechnologies.com\/blog\/?p=1805"},"modified":"2020-12-08T15:59:38","modified_gmt":"2020-12-08T10:29:38","slug":"send-responsive-emails-using-mjml-rails","status":"publish","type":"post","link":"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/","title":{"rendered":"How to send responsive Emails using MJML in Rails?"},"content":{"rendered":"\n<p>Recently we faced an issue with rendering html email template in yahoo mail. The template is perfectly rendering in gmail but not in yahoo and outlook. After stumbling for a while I learned that every email client handles HTML temple differently. They have their own set of rules to render html emails which makes developer&#8217;s life miserable.<\/p>\n\n\n\n<p>Here comes the MJML for rescue.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><a href=\"https:\/\/mjml.io\/\" target=\"_blank\" rel=\"noopener noreferrer\">MJML<\/a>&nbsp;is a markup language designed to reduce the pain of coding a responsive email. MJML&#8217;s objective is to simplify the way people design responsive emails and open-source engine takes care of translating the MJML into responsive HTML.<\/p><\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Get your speed and productivity boosted with MJML&#8217;s semantic syntax. Say goodbye to endless HTML table nesting or email client specific CSS. MJML has many&nbsp;<a href=\"https:\/\/mjml.io\/documentation\/#basic-layout\" target=\"_blank\" rel=\"noopener noreferrer\"><i>layouts<\/i><\/a>&nbsp;and&nbsp;<a href=\"https:\/\/mjml.io\/documentation\/#components\" target=\"_blank\" rel=\"noopener noreferrer\"><i>Components<\/i><\/a>.<\/p><\/blockquote>\n\n\n\n<p>Let&#8217;s get started then,<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Installation<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Requirements<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>Node &gt;= 4.2.x<\/li><\/ul>\n\n\n\n<p>If you don&#8217;t have configured&nbsp;<a href=\"https:\/\/www.liquidweb.com\/kb\/how-to-install-nvm-node-version-manager-for-node-js-on-ubuntu-12-04-lts\/\" target=\"_blank\" rel=\"noopener noreferrer\"><i>nvm<\/i><\/a>&nbsp;or&nbsp;<a href=\"https:\/\/tecadmin.net\/install-latest-nodejs-npm-on-ubuntu\/\" target=\"_blank\" rel=\"noopener noreferrer\"><i>npm<\/i><\/a>&nbsp;installed it first.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Create Rails app and Configure MJML<\/h3>\n\n\n\n<p><b>Create&nbsp;<i>new<\/i>&nbsp;Rails app<\/b><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ rails new MJML-send-mail\n$ cd MJML-send-mail<\/pre>\n\n\n\n<p><b>Install&nbsp;<i>MJML<\/i><\/b><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ nvm install 5.0\n$ npm install mjml@^2.0<\/pre>\n\n\n\n<p>if you already use some Node.js modules, you could also just add it to your package.json file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ npm install - save mjml<\/pre>\n\n\n\n<p><b>Generate&nbsp;<i>controller<\/i><\/b><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ rails g controller home index<\/pre>\n\n\n\n<p><b>Add gem <i>&#8216;mjml-rails&#8217;<\/i>&nbsp;to&nbsp;<i>Gemfile<\/i><\/b><\/p>\n\n\n\n<p><b><i>&#8216;mjml-rails&#8217;<\/i><\/b> allows you to render HTML e-mails from an&nbsp;<a href=\"https:\/\/mjml.io\/\" target=\"_blank\" rel=\"noopener noreferrer\">MJML<\/a>&nbsp;template.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">gem 'mjml-rails'<\/pre>\n\n\n\n<p>and bundle from the command line<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ bundle<\/pre>\n\n\n\n<p><b>Configure&nbsp;<i>development.rb<\/i><\/b><\/p>\n\n\n\n<p>for sending emails, add following configurations (replace your own settins where applicable)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">config.action_mailer.perform_deliveries = true\nconfig.action_mailer.raise_delivery_errors = true\nconfig.action_mailer.default_url_options={:host=&gt;'localhost:3000'}\nconfig.action_mailer.delivery_method = :smtp\nconfig.action_mailer.smtp_settings = {\naddress: \"smtp.gmail.com\",\nport: 587,\ndomain:\"XXXXX.com\",\nuser_name: ENV['USER_NAME'],\npassword: ENV['PASSWORD'],\nauthentication:\"plain\",\nenable_starttls_auto: true\n}<\/pre>\n\n\n\n<p><b>Generate&nbsp;<i>Mailer<\/i>&nbsp;for sending emails from your app<\/b><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ rails g mailer UserMailer send_email<\/pre>\n\n\n\n<p>If layouts already created mailer.mjml file by rails then just remove it because mjml use HTML format so mjml not directly found html syntax.<\/p>\n\n\n\n<p><b>Add below snippet to&nbsp;<i>UserMailer.rb<\/i><\/b><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">def send_email(email)\n@email = email\nmail(to: @email, subject:'Welcome!') do |format|\nformat.text\nformat.mjml\nend\nend<\/pre>\n\n\n\n<p><b>Design the email template<\/b><\/p>\n\n\n\n<p>After all, the most interesting part is designing your template<\/p>\n\n\n\n<p>By default, rails create mailer view as&nbsp;<i>.html.erb<\/i>&nbsp;file we have to change extension to&nbsp;<i>.mjml and design your template here.<\/i><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;mjml&gt;\nlt;mj-body&gt;\n&lt;mj-container&gt;\n&lt;mj-section&gt;\n&lt;mj-column&gt;\n&lt;mj-text\nfont-size=\"30px\"\ncolor=\"#595959\"&gt;\nHello...\n&lt;\/mj-text&gt;\n&lt;mj-divider border-color=\"#F45E43\"&gt;&lt;\/mj-divider&gt;\n&lt;mj-spacer height=\"20px\" \/&gt;\n&lt;%= render :partial =&gt; 'info', :formats =&gt; [:html] %&gt;\n&lt;\/mj-column&gt;\n&lt;\/mj-section&gt;<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;mj-section&gt;\n&lt;mj-column&gt;\n&lt;mj-image width=\"600\" src=\"xxxx\" \/&gt;\n&lt;\/mj-column&gt;\n&lt;\/mj-section&gt;\n&lt;mj-section background-color=\"#fff\"&gt;\n&lt;mj-column&gt;\n&lt;mj-social\ndisplay=\"facebook instagram twitter\"\nfont-size=\"0\"\nicon-size=\"16px\"\npadding=\"0\"\nfacebook-href=\"#\"\ninstagram-href=\"#\"\ntwitter-href=\"#\"\/&gt;\n&lt;\/mj-column&gt;\n&lt;\/mj-section&gt;\n&lt;\/mj-container&gt;\n&lt;\/mj-body&gt;\n&lt;\/mjml&gt;<\/pre>\n\n\n\n<p>We can also use partial to reuse a template like header \/ footer of the email.<\/p>\n\n\n\n<p>so, let&#8217;s create a partial to views\/user_mailer\/_info.mjml<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;mj-text&gt;This is &lt;%= @email %&gt;&lt;\/mj-text&gt;<\/pre>\n\n\n\n<p>Now let&#8217;s test the whole setup using rails console.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">UserMailer.send_email('test@test.com').deliver<\/pre>\n\n\n\n<p>Check your inbox where you sent the email. Try sending email to different mail service provider and check if you get the same email template. Here is what I see using above template.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"434\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/resonsive-email.png\" alt=\"responsive email using MJML in Rails\" class=\"wp-image-13898\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/resonsive-email.png 800w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/resonsive-email-300x163.png 300w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/resonsive-email-768x417.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>Hope you Liked!<\/p>\n\n\n\n<p><a href=\"https:\/\/www.botreetechnologies.com\/ruby-on-rails-development\"><strong><b>Click here for more<\/b> details&#8230;<\/strong><\/a><\/p>\n\n\n\n<p>At<a href=\"https:\/\/www.botreetechnologies.com\/\"> BoTree Technologies<\/a>, we build enterprise applications with our RoR team of 25+ engineers.<\/p>\n\n\n\n<p>We also specialize in Python, RPA, AI, Django, JavaScript and ReactJS.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/www.botreetechnologies.com\/contact\">Consulting is free<\/a> &#8211; let us help you grow!<\/h3>\n","protected":false},"excerpt":{"rendered":"<p>Recently we faced an issue with rendering html email template&#8230;<\/p>\n","protected":false},"author":15,"featured_media":13897,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73,10],"tags":[],"class_list":["post-1805","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ruby-on-rails","category-technology"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to send responsive Emails using MJML in Rails?<\/title>\n<meta name=\"description\" content=\"MJML is a markup language designed to reduce the pain of coding responsive email. It&#039;s objective is to simplify and translate the MJML into responsive HTML.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to send responsive Emails using MJML in Rails?\" \/>\n<meta property=\"og:description\" content=\"MJML is a markup language designed to reduce the pain of coding responsive email. It&#039;s objective is to simplify and translate the MJML into responsive HTML.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/\" \/>\n<meta property=\"og:site_name\" content=\"BoTree Technologies\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/BoTreeTechnologies\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-03-07T09:17:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-08T10:29:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2017\/03\/emails-using-mjml-rails.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"683\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Prina Patel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@BoTreeTech\" \/>\n<meta name=\"twitter:site\" content=\"@BoTreeTech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prina Patel\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/\"},\"author\":{\"name\":\"Prina Patel\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/1e6294444428608e617c78b2a0b16104\"},\"headline\":\"How to send responsive Emails using MJML in Rails?\",\"datePublished\":\"2017-03-07T09:17:23+00:00\",\"dateModified\":\"2020-12-08T10:29:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/\"},\"wordCount\":442,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2017\/03\/emails-using-mjml-rails.jpg\",\"articleSection\":[\"Ruby on Rails\",\"Technology\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/\",\"name\":\"How to send responsive Emails using MJML in Rails?\",\"isPartOf\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2017\/03\/emails-using-mjml-rails.jpg\",\"datePublished\":\"2017-03-07T09:17:23+00:00\",\"dateModified\":\"2020-12-08T10:29:38+00:00\",\"author\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/1e6294444428608e617c78b2a0b16104\"},\"description\":\"MJML is a markup language designed to reduce the pain of coding responsive email. It's objective is to simplify and translate the MJML into responsive HTML.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/#primaryimage\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2017\/03\/emails-using-mjml-rails.jpg\",\"contentUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2017\/03\/emails-using-mjml-rails.jpg\",\"width\":1024,\"height\":683,\"caption\":\"Emails using MJML in Rails\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.botreetechnologies.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to send responsive Emails using MJML in Rails?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#website\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/\",\"name\":\"BoTree Technologies\",\"description\":\"Committed to inspire generation.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.botreetechnologies.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/1e6294444428608e617c78b2a0b16104\",\"name\":\"Prina Patel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/prina-patel-150x150.png\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/prina-patel-150x150.png\",\"contentUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/prina-patel-150x150.png\",\"caption\":\"Prina Patel\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to send responsive Emails using MJML in Rails?","description":"MJML is a markup language designed to reduce the pain of coding responsive email. It's objective is to simplify and translate the MJML into responsive HTML.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/","og_locale":"en_US","og_type":"article","og_title":"How to send responsive Emails using MJML in Rails?","og_description":"MJML is a markup language designed to reduce the pain of coding responsive email. It's objective is to simplify and translate the MJML into responsive HTML.","og_url":"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/","og_site_name":"BoTree Technologies","article_publisher":"https:\/\/www.facebook.com\/BoTreeTechnologies\/","article_published_time":"2017-03-07T09:17:23+00:00","article_modified_time":"2020-12-08T10:29:38+00:00","og_image":[{"width":1024,"height":683,"url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2017\/03\/emails-using-mjml-rails.jpg","type":"image\/jpeg"}],"author":"Prina Patel","twitter_card":"summary_large_image","twitter_creator":"@BoTreeTech","twitter_site":"@BoTreeTech","twitter_misc":{"Written by":"Prina Patel","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/#article","isPartOf":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/"},"author":{"name":"Prina Patel","@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/1e6294444428608e617c78b2a0b16104"},"headline":"How to send responsive Emails using MJML in Rails?","datePublished":"2017-03-07T09:17:23+00:00","dateModified":"2020-12-08T10:29:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/"},"wordCount":442,"commentCount":0,"image":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/#primaryimage"},"thumbnailUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2017\/03\/emails-using-mjml-rails.jpg","articleSection":["Ruby on Rails","Technology"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/","url":"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/","name":"How to send responsive Emails using MJML in Rails?","isPartOf":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/#primaryimage"},"image":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/#primaryimage"},"thumbnailUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2017\/03\/emails-using-mjml-rails.jpg","datePublished":"2017-03-07T09:17:23+00:00","dateModified":"2020-12-08T10:29:38+00:00","author":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/1e6294444428608e617c78b2a0b16104"},"description":"MJML is a markup language designed to reduce the pain of coding responsive email. It's objective is to simplify and translate the MJML into responsive HTML.","breadcrumb":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/#primaryimage","url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2017\/03\/emails-using-mjml-rails.jpg","contentUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2017\/03\/emails-using-mjml-rails.jpg","width":1024,"height":683,"caption":"Emails using MJML in Rails"},{"@type":"BreadcrumbList","@id":"https:\/\/www.botreetechnologies.com\/blog\/send-responsive-emails-using-mjml-rails\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.botreetechnologies.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to send responsive Emails using MJML in Rails?"}]},{"@type":"WebSite","@id":"https:\/\/www.botreetechnologies.com\/blog\/#website","url":"https:\/\/www.botreetechnologies.com\/blog\/","name":"BoTree Technologies","description":"Committed to inspire generation.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.botreetechnologies.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/1e6294444428608e617c78b2a0b16104","name":"Prina Patel","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/prina-patel-150x150.png","url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/prina-patel-150x150.png","contentUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/prina-patel-150x150.png","caption":"Prina Patel"}}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/1805","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=1805"}],"version-history":[{"count":1,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/1805\/revisions"}],"predecessor-version":[{"id":13899,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/1805\/revisions\/13899"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/media\/13897"}],"wp:attachment":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=1805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=1805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=1805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}