Sandbox

Below are sample e-mails built with Json2Email. Use the sandbox for inspiration or to build/test your json request payloads

Welcome e-mail json

{ "body": [ { "image": { "url": "images/logo.png", "alt": "This is my logo" } }, { "smallHeading": { "text": "Hi there Bob," } }, { "paragraph": { "text": "Thank you for signing up at Json2Mail.com! " } }, { "paragraph": { "text": "A few things to remember:" } }, { "ol": [ { "string": "You rock!" }, { "string": "Go outside." } ] }, { "paragraph": { "text": "In case we need to contact you for critical updates, please confirm you e-mail address by clicking the link below." } }, { "button": { "text": "Confirm e-mail address", "url": "https:/example.com/confirm?token=123" } } ], "footer": [ { "paragraph": { "text": "You are receiving this message because you created an account at json2mail" } }, { "string": "PO BOX 123 - 456 Fifth Ave. - NY, USA" }, { "html": "<br />" }, { "link": { "text": "https://json2mail.com", "url": "https://json2mail.com" } } ] }

Output

Simple mailing json

{ "body": [ { "image": { "url": "images/placeholder.png", "alt": "header" } }, { "bigHeading": { "text": "Your weekly update." } }, { "paragraph": { "text": "Hi Bob," } }, { "paragraph": { "text": "This is your weekly update. Enjoy!" } }, { "paragraph": { "text": "- Kathy from AwesomeSite.com" } }, { "smallHeading": { "text": "Cool story #1" } }, { "image": { "url": "images/placeholder.png", "alt": "header" } }, { "paragraph": { "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ut nibh id lectus porttitor fermentum auctor non lectus. Praesent facilisis ut metus euismod interdum. Nulla laoreet justo et felis dignissim porttitor. Morbi tristique velit eu magna auctor, vitae vestibulum quam semper." } }, { "button": { "text": "Read more...", "url": "https:/example.com/article?id=123" } }, { "smallHeading": { "text": "Cool story #2" } }, { "image": { "url": "images/placeholder.png", "alt": "header" } }, { "paragraph": { "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ut nibh id lectus porttitor fermentum auctor non lectus. Praesent facilisis ut metus euismod interdum. Nulla laoreet justo et felis dignissim porttitor. Morbi tristique velit eu magna auctor, vitae vestibulum quam semper." } }, { "button": { "text": "Read more...", "url": "https:/example.com/article?id=123" } }, { "smallHeading": { "text": "Cool story #3" } }, { "image": { "url": "images/placeholder.png", "alt": "header" } }, { "paragraph": { "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ut nibh id lectus porttitor fermentum auctor non lectus. Praesent facilisis ut metus euismod interdum. Nulla laoreet justo et felis dignissim porttitor. Morbi tristique velit eu magna auctor, vitae vestibulum quam semper." } }, { "button": { "text": "Read more...", "url": "https:/example.com/article?id=123" } } ], "footer": [ { "paragraph": { "text": "You are receiving this message because you created an account at AwesomeSite" } }, { "string": "PO BOX 123 - 456 Fifth Ave. - NY, USA" }, { "html": "<br />" }, { "link": { "text": "https://awesomesite.com", "url": "https://json2mail.com" } } ] }

Output

Password reset e-mail json

{ "body": [ { "image": { "url": "images/logo.png", "alt": "This is my logo" } }, { "smallHeading": { "text": "Hi there Bob," } }, { "paragraph": { "text": "We heard you lost your password. Not to worry! Just click the link below to reset your password and you'll be good to go." } }, { "button": { "text": "Reset password", "url": "https:/example.com/reset_password?token=123" } } ], "footer": [ { "string": "PO BOX 123 - 456 Fifth Ave. - NY, USA" }, { "html": "<br />" }, { "link": { "text": "https://json2mail.com", "url": "https://json2mail.com" } } ] }

Output

Order confirmation e-mail json

{ "body": [ { "smallHeading": { "text": "Hi Jeff," } }, { "paragraph": { "text": "Thank you for your order!" } }, { "paragraph": { "text": "You ordered the following:" } }, { "ul": [ { "string": "1 x pair of polka dot socks @ USD 29.99" }, { "string": "1 x pair of Italian loafers @ USD 229.99" }, { "string": "1 x pin striped suit @ USD 599.00" }, { "string": "1 x cowboy hat @ USD 69.00" }, { "string": "1 x personal style consultation (you'll need it) @ USD 79.00" } ] }, { "paragraph": { "text": "Total: USD 1006,98" } }, { "paragraph": { "text": "Shipping address: Zip - Street - City - State, USA" } }, { "paragraph": { "text": "Billing address: Zip - Street - City - State, USA" } }, { "button": { "text": "View order", "url": "https:/example.com/view_order?order_id=123" } } ], "footer": [ { "paragraph": { "text": "You are receiving this message because you bought some stuff." } }, { "string": "PO BOX 123 - 456 Fifth Ave. - NY, USA" } ] }

Output

Social update e-mail json

{ "body": [ { "image": { "url": "images/logo.png", "alt": "This is my logo" } }, { "paragraph": { "text": "Hi there Bob," } }, { "paragraph": { "text": "Here's an oveview of your last week's activity stream:" } }, { "ul": [ { "string": "LisaB4EVER followed you" }, { "string": "You have 4 pending events" }, { "string": "You have 3 pending friend requests" }, { "string": "You have 1 pending group invite" }, { "string": "You have 5 unread notifications" } ] }, { "button": { "text": "View stream", "url": "https:/example.com/stream?user_id=123" } } ], "footer": [ { "string": "PO BOX 123 - 456 Fifth Ave. - NY, USA" }, { "html": "<br />" }, { "link": { "text": "Manage your notifications settings", "url": "https:/example.com/settings?user_id=123" } } ] }

Output