5-Step Mailpit Configuration for Offline Email Testing

mailpit configuration
  • 5 min. read
  • Dec 3rd, 2024
  • Technology

There are several ways to test and debug SMTP emails. The most common method is to use an online service like Mailtrap or Mailgun. While these tools are incredibly useful, they often come with a cost and require an internet connection, leading to resource constraints, especially with the free tiers.

Developers often find themselves sending email notifications frequently to test different functionalities. In the search for efficient and cost-effective solutions, professionals often look for alternatives that could be used offline. 

Among these are two offline-based software options for testing emails locally: Helo (Paid) and Mailpit (Free | Open Source). Given that Mailpit is free and open-source, it is a go-to tool for many. In this blog, get familiar with how to install and configure Mailpit, making email testing both accessible and efficient.

How to Use Mailpit for Offline Email Testing?

If you’re wondering how to set up Mailpit, the following steps can help you get started.

Step 1 - Download Mailpit

Follow the install instructions here:

GitHub - axllent/mailpit: An email and SMTP testing tool with API for developers

For windows you can check the releases page. There can be multiple variants, namely AMD, ARM and x386. You would need to download the file based on your OS and processor type.

  • AMD/AMD64 - For Intel/AMD processors
  • ARM - ARM processor (mostly found in mobile devices)
  • x386 - 32-bit Intel processors

Step 2 - Install Mailpit

While installing on Linux is easy, there are a few more steps to follow on Windows.

Once the zip file is downloaded, extract it to a location as per your choice. The extracted contents will look like this:

Install Mailpit

Step 3 - Add mailpit path to environment

To add the mailpit path to environment $PATH variable, follow these steps:

3.1. Search for env

Search for env

3.2. Click on the control panel item. It will open this window. Then click on the highlighted button. 

System Properties

3.3. You may choose to modify either the user or system variables. Select path and then click on edit according to your selection.

Select Path

3.4. In the newly opened window, click on New and add mailpit installation path like the following.

Edit Environment Variable

3.5. Click OK → OK → Apply → OK.

Step 4 - Using persistent storage

All email data will be lost once mailpit closes. To mitigate this, we can use a sqlite database.

Just create a blank file but make sure to keep its extension as .sqlite

You can keep the file anywhere on your system but it is suggested to create the file in the installation folder.

Step 5 - Launch Mailpit

Run the following command in your terminal to launch Mailpit with persistent storage.

mailpit -d "" -v

Replace  with the actual path to your sqlite DB file. -v is used to enable verbose logging

Once the mailpit server starts, you can access it via 127.0.0.1:8025.

Other customization options can be found in their official documentation.

Bonus: Create alias to launch mailpit

alias mpit=mailpit -d "C:\\mailpit\\maildb.sqlite" -v $*

Wrapping Up

Thank you for reading! Hopefully, this guide on Mailpit configuration and use for offline email testing has been helpful. If you have any questions or need further assistance, please don't hesitate to contact us. We’d love to hear about your experiences with Mailpit or any other tools you use for email testing.

Stay connected for more tips and tutorials!

Happy coding!


Tags

  • Mailpit Configuration
  • Offline Email Testing
  • SMTP Testing

Related Blogs

sundew

Blog

Customer Experience Metrics: Engineering the Future of CX Excellence

Delivering a truly humane customer experience, amidst inhumane competition, while meeting all modern expectations, goes far beyond just friendly interactions. It is a science driven by insights derived from precise customer experience metrics.These metrics offer the clarity needed to turn buyer interactions into valuable, strategic assets. However, with the plethora of data available, it is easy to feel overwhelmed in identifying which metrics to focus on.So, what are the top digital CX metrics that you should focus on, how are they measured, and what tools can help you make the most out of them?Why Tracking Customer Experience Metrics is Crucial?Customer experience (CX) metrics are the key indicators of a company’s ability to meet and exceed customer expectations. A well-structured CX strategy directly impacts business success. When consumers have positive interactions, they are more likely to make repeat purchases, recommend the brand to others, and contribute to long-term revenue growth. By continuously monitoring and optimizing these metrics, companies not only improve buyer satisfaction but also strengthen their market position.What Are the 4 Metrics of Customer Service?Now that we’ve established the importance of CX metrics, let’s dive deeper into the categories of customer experience metrics KPIs that every business should track.1. Quantitative Customer Feedback MetricsCustomer Satisfaction Score (CSAT)CSAT gauges how happy customers are with a specific interaction, product, or service.How It’s Measured: Typically captured via a one-question survey, with responses on a numeric scale. This category of CX metrics examples includes a “How would you rate your overall satisfaction with the service/product?” pop-up/form with a rating option from 1 to 5.Calculation of CSAT: (Number of Satisfied Customers / Total Number of Customer Responses) x 100Technical Insights: Modern survey platforms and CX management software automate data collection and analysis, delivering real-time dashboards that help teams quickly identify and resolve issues.Customer Effort Score (CES)CES measures the ease with which consumers can interact with your brand, whether it’s resolving an issue or finding information.How It’s Measured: Consumers are asked to rate the ease of achieving a specific goal on a scale from 1 (difficult) to 5 (easy). An example of a CES goal can be “It was easy to resolve my issue today”.Calculation of CES: Sum of Customer Effort Rankings / Total Number of Customer Responses.Technical Insights: AI-powered tools can automatically extract CES from text feedback by analyzing language patterns in customer communications.Net Promoter Score (NPS)NPS is a proven metric for measuring customer loyalty and the likelihood of referrals.How Calculation of NPS: Percentage of Promoters – Percentage of DetractorsHere, respondents are segmented into Promoters (9–10), Passives (7–8), and Detractors (0–6).Technical Insights: Integrating NPS surveys within CRM systems or using dedicated NPS software simplifies tracking and analysis, helping businesses harness social proof and drive organic growth.2. Behavioral and Operational MetricsCustomer Churn and Retention RatesChurn rate is the percentage of consumers who discontinue using your service over a specified period.Retention rate is the percentage of consumers who continue engaging with your brand.Technical Insights: These digital customer experience metrics are extracted from CRM tools and transactional data. These allow companies to forecast revenue, pinpoint at-risk segments, and refine retention strategies.Customer Lifetime Value (CLV)CLV predicts the total revenue a buyer will generate during their relationship with your company.Technical Insights: By combining purchase history, frequency data, and predictive analytics, organizations can allocate resources effectively to nurture high-value clients, optimize marketing campaigns, and maximize ROI.First Response Time (FRT) & Average Resolution Time (ART)FRT measures the time it takes for a support team to acknowledge a query from a consumer.ART tracks the average duration to resolve an issue.Technical Insights: Automated ticketing systems and integrated CX platforms provide real-time metrics and detailed reports, enabling support teams to enhance responsiveness and efficiency.3. Qualitative and Sentiment-Based MetricsCustomer SentimentSentiment analysis interprets the emotional tone behind feedback from surveys, social media, and support interactions.Natural language processing (NLP) tools analyze text to classify sentiments as positive, neutral, or negative.Technical Insights: Advanced sentiment analysis tools can process vast amounts of unstructured data. This offers deep insights into underlying consumer attitudes that may not be evident through numerical scores alone.Customer Emotional IntensityThis metric measures the depth of a buyer’s emotional engagement with your brand.Often rated on a 1 to 5 scale, emotional intensity is derived from analyzing verbal cues, written feedback, and even facial expressions in video interactions.Technical Insights: By leveraging machine learning and sophisticated analytics, companies can pinpoint areas that trigger strong emotional responses. This can help them tailor engagement strategies to foster deeper connections.Visitor Intent and Behavioral AnalyticsThese CX metrics analyze what buyers aim to accomplish during their interactions with your digital platforms. They also measure how user behavior aligns with those intended goals.Technical Insights: Utilizing tracking cookies, website analytics, and on-page surveys, businesses can monitor user journeys, identify friction points, and optimize website design for better conversion rates.Integrating Data for a Unified Customer ViewModern CX management demands a holistic approach:Data Integration: Consolidate data from surveys, CRM systems, contact centers, and social listening tools into comprehensive dashboards.Real-Time Monitoring: Use automated tools and AI to monitor CX metrics in real time, allowing for swift adjustments.Actionable Insights: Utilize these metrics not just for reporting but for driving continuous improvements, refining processes, training staff, and tailoring marketing strategies.By adopting a data-centric, technically robust approach to measuring customer experience, companies can unlock actionable insights that fuel long-term growth, boost loyalty, and set new benchmarks in service excellence.Strategic Approaches to Optimizing CX Metrics for Business GrowthWith businesses gathering CX data from multiple touchpoints, it’s easy for insights to become fragmented across departments. These data include web interactions, social media, customer support (CS), and in-person feedback. Maintaining a structured approach to avoid data silos require a centralized approach to CX measurement. This means aligning all departments, marketing, sales, CS, and product teams under a unified CX framework that captures customer sentiment across the entire journey.Here are some strategies on how you can do so:Track metrics across the entire customer journey, not just isolated touchpoints.Use technology to integrate and analyze feedback from multiple sources, surveys, social media, contact centers, and support tickets.Prioritize a curated set of key metrics to avoid data overload and focus on actionable insights.Adopt a continuous improvement mindset, regularly reviewing and adjusting CX strategies based on real-time data.Choose Metrics That Drive Real ChangeWhen it comes to customer experience metrics, don’t get lost in a sea of numbers. Instead of tracking every metric, focus on those that lead to clear, actionable improvements. The real win is not in the data itself but in the changes you make based on it.Remember, a seamless and satisfying experience fosters brand loyalty, while a single negative encounter can go viral and significantly impact a company’s reputation.Ultimately, the goal is simple: use your data as a compass to guide meaningful, continuous progress.

Read More
sundew

Blog

How to choose the right Machine Learning Algorithm?

When considering machine learning algorithms, you will find there is no particular solution or one approach that fits all. There are numerous factors that can affect your decision to choose an ML algorithm.Some problems are very explicit and require a unique approach. For instance, if you look at a recommendation system, it’s a very common type of machine learning algorithm and solves a very exact kind of problem. While some other problems are open and need a trial and error approach such as supervised learning, classification and regression. They could be used in anomaly detection or could be incorporated to build more universal sets of predictive models.Further, some of the decisions that we make when choosing an ML algorithm have less to do with the optimization of the algorithm but more to do with business decisions. Here we compiled some of the factors that can help you narrow down the search for your machine learning algorithm.Understanding the DataThe type and kind of data play a vital role in determining which algorithm to practice. Some algorithms can work with smaller sample sets while others require tons of samples. Few algorithms work with certain types of data sets e.g.  Naïve Bayes works well with definite input but doesn’t respond to missing data.Recognize your constraints•    Check data storage capacity in order to store gigabytes of classification or gigabytes of data to the cluster.•    In real-time applications, it is obviously very important to have a swift prediction•    Data learning have to be fast in order to rapidly update your model with a different dataset.Identify the available algorithmsOnce you understand where you stand, you can identify the algorithms that are applicable and tangible to implement. Some of the elements persuading the choice of a model are:•    Whether the model meets the goal of the business•    The accuracy of the model•    How reasonable the model is•    Performance and time it can take to build a model to make the right predictions.•    Scalability of the modelLogistic RegressionLogistic regression provides a probabilistic framework to receive more training data in the future that you want to be able to quickly incorporate into your model. Logistic regression can also help you comprehend the contributing factors behind the prediction.Decision treesDecision trees can easily handle feature interactions and they’re non-parametric, so you don’t have to worry about outliers. One drawback is that they don’t support online learning, so you have to rebuild your tree when new examples come up.Support Vector MachineSupport Vector Machine is a supervised ML technique that is broadly used in pattern recognition and classification problems.Naive BayesNaive Bayes is known to outperform even highly sophisticated classification methods and used for very large data sets.Neural networksIt is used to predict the class by establishing a link between neurons. With Neural networks, extremely complex models can be trained and utilized to perform unsupervised learning tasks, such as feature extraction from raw images or speech with much less human intervention.It is difficult to shortlist at first which algorithm will work best. Being able to combine and balance to solve a machine-driven problem is crucial and those who can do this add the most value. So consider all the points above to develop the right solution and at the end assess the performance of the algorithms to select the best one. 

Read More
sundew

Blog

Principles of Content Design - Introduction to Content Design

Brands have been starting their Digital Transformation journey, and with it, Websites have become the virtual establishment of most Enterprises. Just like how retailers and service providers showcase their best series of products, it is essential to plan and strategize information before launching them to the Consumers. Good content is necessary to keep the Users engaged, but more than that, their attention is fixed by the Design. Visuals are the main element through which consumers perceive Digital Platforms and, thus, Brands associated with them. With growing competition in the Global market, a slack in Content Design will make you lose one Consumer and help your competitors gain one more. It is thus the Job of a Content designer to collaborate with Software developers, graphic designers, researchers, operators, and everyone associated with the making of Digital products to arrange and structure the right Content in the most suitable and optimal way to be attended by the users. In this article, we will be discussing about - Content Design; Principles of Content Design; And why Content Design is essential for your Web presence.  Introducing Content DesignTo put it in the simplest way, Content Design is the job of communicating researched information about a product to the Users in a form that ensures a positive user experience. It is the art of architecting Content through the right Web designs so that users are focused and enjoy the overall experience of gaining information to fulfill their goals. Users visit Websites to fulfill certain tasks. Whether it is buying a product or gathering more knowledge about a product. The achievement of these tasks do not only depend on the quality of the content but also on the structure and functionality of the Website. Easy availability of required information is important, and the main motive behind Good Content Designing is to enhance user experience. This goal is fulfilled by various processes of elaborative research, identifying user needs through Data analysis, and making changes considering user feedback. Sarah Richards created the field of Content Design, and for her - “Content design is a way of thinking. It’s about using data and evidence to give the audience what they need, at the time they need it and in a way that they expect.”Principles of Content DesignTo build an intact Content Design, there are various principles that can be implemented to ensure efficiency. 1. Understanding the GoalEach Brand has a different value to pass down to its users. The most important principle for Content Designing is to understand each value attached to the Brand so that a clear goal can be set regarding what information the users will receive on the other end. The central focus of any Digital Service is to interact with its users, and thus picking Content that fulfills this purpose is essential. 2. ResearchTo realize a need, the first step is to recognize it. A good relationship between The Brands and the Customers can only be achieved if the company recognizes its users and delivers what they require. Finding about the type of Users engaged with a brand and establishing a target audience makes it easier to convey the right piece of information in the right language.User requirements can be easily foreseen with the help of Data Analytics. There are numerous tools in the market capable of Analyzing complicated Data to figure out User requirements so that an impactful transformation can be achieved.   Imagining things from the user’s perspective is one thing, but the Power of data analytics goes beyond assumptions and it stands on a scientific basis. 3. SimplicityPeople have different understanding capabilities, but a simple layout is perceivable by all. More than keeping Minimal and plain visual designs, Simple Designs can mean various things. To make the operation process simple is the key to achieve more interested users. Keeping easy navigation buttons, understandable tools to obtain the service, and simple Language helps the Users to claim their required information and achieve their tasks seamlessly. 4. ContextThere might be various reasons why Consumers from different backgrounds visited your Website. To learn all the paths to a Website and adding features that might benefit the users, no matter which path led them in, can enhance User Experience. Building the Content Architecture with the perspective of a User’s context adjusts the Web page to any device and constructs an operational system that appears seamless in any circumstance. 5. Minimal Information The Human attention span has gone down, so an ultimate countdown of time begins as the User approaches the Website to gather information. Thus a calculated series of very important content is to be put on display which answers most of the queries or conducts required tasks. An overload of information is as good as no information. 6. VisualsContent only is not sufficient to grab and sustain the attention of the users. The aesthetics and Visual Symmetry of the Web page also determines User inflow. Colors, Font Sizes, Graphics, Images play an important role to accentuate the Content and a right placement of everything is necessary to create a good Content Design. Without balance between these elements, a user might experience a negative overall experience.  7. AccessibilityWithout presenting the tailor crafted Content and detailed Visuals to the Users, the very essence of Content Designing becomes meaningless. Conveying information to Users can be an amalgamation of various processes. Brands should be prepared to include the diversity of an entire Nation under the accessibility of their Content and services and find ways to deliver their values to all humans. Disabilities between humans should not stand in the way of exchanging values. Newer technologies are making connections easier, expanding the stretch of Accessibility. 8. FlexibilityA flexible Content Design adapts with changing times. Whether a piece of information or the way of showcasing content, Changes need to be implemented according to User feedback. Iterating is an important principle of a good Content design as the user needs change every now and then, and to keep them happy including and deleting things in an inevitable process. Content Design is essential to make a Website stand out from the rest and to gain more User interaction. With these principles, a Brand can make its Digital platform seamless, constructing a positive User Experience. Content can be any piece of communication thus even the minute designs require to be detailed in order to convey the right message, making all the elements of a Website important. Quoting Sarah at last, “The best content knows it has purpose and fulfills that purpose. If it doesn’t, that content is a waste of space.”

Read More

Thank You!

Excellent!

Successfully subscribed to Sundew Solutions newsletter!

Acknowledged