Skip to content
MailSlurp logo

JavaScript guides and tutorials

33 practical MailSlurp resources

JavaScript is a widely-used programming language that plays a crucial role in web development. It is a versatile language that allows developers to create interactive and dynamic web pages. In this blog post, we will explore the basics of JavaScript and its significance in the world of software development.

JavaScript, often abbreviated as JS, was initially created to add interactivity to static HTML pages. However, over the years, it has evolved into a powerful language that can be used for both front-end and back-end development. It is supported by all major web browsers, making it a popular choice among developers.

One of the key features of JavaScript is its ability to manipulate the Document Object Model (DOM). The DOM is a representation of the HTML elements on a web page, and JavaScript allows developers to modify, add, or remove these elements dynamically. This enables the creation of interactive features such as form validation, image sliders, and real-time updates without the need for page reloads.

Another important aspect of JavaScript is its support for asynchronous programming. With the introduction of Promises and async/await in recent versions of the language, developers can write code that runs concurrently without blocking the main thread. This is particularly useful for handling network requests, database operations, and other time-consuming tasks, ensuring a smooth user experience.

JavaScript also has a vast ecosystem of libraries and frameworks that simplify the development process. Popular frameworks like React, Angular, and Vue.js provide developers with tools and abstractions to build complex web applications efficiently. Additionally, JavaScript has a rich collection of open-source libraries that address various needs, ranging from data visualization to testing and debugging.

In conclusion, JavaScript is a fundamental language for software developers, especially those involved in web development. Its ability to manipulate the DOM, support for asynchronous programming, and extensive ecosystem of libraries and frameworks make it a versatile and powerful tool. Whether you are a beginner or an experienced developer, having a solid understanding of JavaScript is essential for building modern and interactive web applications.

Articles and guides

technical

Node Send Email SMTP Guide (Nodemailer, API Sends, and Testing)

Send email with Node.js SMTP using Nodemailer, secure auth/TLS settings, HTML, attachments, API sends, and receive-side testing workflows.

Read more
technical

Fastest way to start a TypeScript project (modern Node setup)

Create a new TypeScript project quickly with modern tooling, strict compiler settings, and reliable run/build/test scripts.

Read more
technical

Testing Next Auth email magic links with Playwright and MailSlurp

Test NextAuth email magic links end-to-end with Playwright and MailSlurp.

Read more
technical

GraphQL API for disposable email accounts

How to create real email addresses using GraphQL to send and receive emails in tests and frontend applications.

Read more
technical

Tailwind print styles: custom media query setup and real-world pitfalls

Learn how to add print-specific Tailwind classes, build clean PDF-friendly layouts, and avoid common print rendering issues.

Read more
technical

Hugo responsive image srcsets optimize website performance.

Using custom `render-image` layout partial in Hugo, learn how to serve responsive picture tags with source sets and webp conversion for images.

Read more
technical

Test email accounts with Jest and Puppeteer for automation testing.

Automated Test Email Accounts in React with Jest, Puppeteer and MailSlurp, showing how to test user sign-up and email verification in Javascript.

Read more
technical

Validate frontmatter Markdown SEO metadata in NodeJS

How to parse and validate markdown with YAML headers and assert for required meta data lengths and properties.

Read more
technical

Testing email with Cypress test email accounts

Test email accounts for CypressJS. End-to-end testing with real email addresses using MailSlurp Cypress plugin.

Read more
technical

Test an Email OTP from Signup to Confirmed Account

Receive a real verification email in an isolated inbox, extract its current OTP, and use Cypress to confirm the intended account.

Read more
technical

Set the same CSS property twice in React

React style props use JavaScript objects, so duplicate keys cannot provide CSS fallbacks. Learn when to use a class, image-set(), or picture instead.

Read more
technical

Sending Emails in JavaScript (NodeJS) with Nodemailer Tutorial

Learn how to send emails directly from the client-side with JavaScript and Node.js using step-by-step examples & practical solutions.

Read more
technical

Send Email with the MailSlurp JavaScript SDK

Use MailSlurp SendEmailOptions in JavaScript and TypeScript. Learn the return type, HTML fields, attachment IDs, templates and receive-side checks.

Read more
technical

Send and receive email with the MailSlurp GraphQL API

Use MailSlurp's GraphQL email API to create inboxes, send messages, receive email, and explore queries and mutations in the browser playground.

Read more
technical

Nodemailer SMTP Guide (Node.js Send + Receive Test Workflow)

Configure Nodemailer SMTP in Node.js with environment-based settings, troubleshooting guidance, and deterministic inbox testing patterns.

Read more
technical

MailSlurp JavaScript SDK Quickstart

Create inboxes, send email, receive messages, and test email workflows with the official MailSlurp JavaScript SDK.

Read more
technical

How to show the latest package version in npm

Find the npm version behind latest, compare installed and allowed updates, check dist-tags, and upgrade packages without surprising your test suite.

Read more
technical

GraphQL email mail API is a powerful tool for managing email.

Fetch and read emails with Graph-QL mail APIs. Control and inbox using MailSlurp and Graph query language instead of SMTP protocol.

Read more
technical

File to Base64: encode files in Node.js, Python, Java, Go, and C#

Learn how to convert file to base64 in multiple languages, upload base64 payloads to APIs, and avoid common size and encoding mistakes.

Read more
technical

Email read (opened seen settings)

Effortlessly manage read status with MailSlurp: mark emails as read or unread manually or fetch only unread ones with the unreadOnly flag.

Read more
technical

Deno Email APIs for Sending Emails

Learn to Send and Receive Emails in Deno with MailSlurp: A Tutorial for the JavaScript Runtime created by NodeJS's inventor Ryan Dahl.

Read more
technical

Cypress testing with disposable email accounts

Test email sign-up, password verification and more with Cypress testing and MailSlurp. Capture OTP magic links and test auth flows end-to-end.

Read more
technical

Cypress Email Testing with the Official MailSlurp Plugin

Install cypress-mailslurp, create an isolated inbox, wait for a matching verification email, extract its code, and clean up safely in Cypress CI.

Read more
technical

Cypress Email Testing Tutorial with MailSlurp

Step-by-step Cypress email testing tutorial with MailSlurp: create inboxes, assert signup links and OTP codes, and stabilize CI runs.

Read more
technical

CodeceptJS email testing

How to send and receive email from disposable mailboxes during integration testing in Codecept JS

Read more
technical

Batching API Requests for Email Recipients

Sending emails with multiple recipients? Learn how to bypass MailSlurp's limits with batching in our guide on sending API requests.

Read more
technical

Automated end-to-end testing with TestCafe and MailSlurp

End-To-End Testing Multifactor Authentication with MailSlurp, NodeJS, and TestCafe - A Tutorial with Code Examples on GitHub".

Read more
technical

Automate sign-up with NodeJS and WebDriver for efficient user registration.

Automated Email Testing with WebDriver and MailSlurp: A simple way to test user sign-up and email confirmations using Selenium and Chrome.

Read more
technical

Nodemailer NPM Guide: Send Email with Node.js and Test Delivery

Install Nodemailer from npm, configure Node.js SMTP, fix common send errors, and test real inbox delivery with MailSlurp.

Read more
technical

Test user sign up with NodeJS and Jest

How to Use Test Email Accounts with Jest and NodeJS: Sign Up Users End-to-End with Real Emails and Verify Codes. Learn with Example Code and MailSlurp.

Read more
technical

Receiving emails in tests is an important aspect of software dev.

Programmatically test your apps end-to-end with realistic emails using MailSlurp. Learn how with their REST API and SDKs in multiple languages.

Read more
technical

Sending Email with Node.js: SMTP, APIs, and Testable Workflows

Learn practical ways to send email in Node.js using SMTP and provider APIs, then validate delivery with automated integration tests.

Read more
technical

Fetch error message in JavaScript

Error Handling with Javascript Fetch: A guide on how to handle different response status codes in API design using try-catch keywords and promises with samples.

Read more

Popular tags