How to use the mjml.default function in mjml

To help you get started, we’ve selected a few mjml examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Lambda-School-Labs / CS10-restaurant-pos / api / controllers / employees / employeeRegister.js View on Github external
.then(employeeInfo => {
      // Send the employees pin number
      const confirmationEmail = {
        to: email,
        from: 'support@maincourse.app',
        subject: 'Welcome to Main Course!',
        text: 'Thank you for signing up for Main Course',
        html: mjml2html(`
      
      
    
  
    

      

        Main Course POS

      

    
    

      
github Lambda-School-Labs / CS10-restaurant-pos / api / controllers / employees / adminRegister.js View on Github external
.then(adminInfo => {
      // Send a confirmation email
      if (process.env.NODE_ENV !== 'test') {
        const confirmationEmail = {
          to: email,
          from: 'support@maincourse.app',
          subject: 'Welcome to Main Course!',
          text: 'Thank you for signing up for Main Course',
          html: mjml2html(`
        
        
      
    
      

        

        Main Course POS

        

      
      

        
github sealcode / sealious / lib / email / templates / simple.js View on Github external
function get_html(app, data, logo_cid) {
	const result = mjml2html(`
		
		  
			
			  
				
				
				
				  <h1>
					 ${data.subject}
				  </h1>
				  ${data.text}
				
				${data.buttons.map(
					button =&gt;

mjml

MJML: the only framework that makes responsive-email easy

MIT
Latest version published 3 months ago

Package Health Score

83 / 100
Full package analysis