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

The Power of Data Visualization Using Tableau

With the boon of a data-driven workspace also comes the bane of information that is fragmented and complex. For modern enterprises, clarity and context hold a higher ground than the quantity of data alone. Data visualization using Tableau addresses this gap between diverse, disjointed sources of data and actionable insights.By combining robust data preparation with story-driven dashboards, Tableau equips decision-makers with clarity, speed, and confidence.So, how can you use Tableau to transform clusters of data into business intelligence?Take a look at the best practices for effective data visualization with Tableau, and examine real-world use cases across industries driving measurable results.Role of Tableau in Data VisualizationTableau is a leading self-service Business Intelligence (BI) tool designed to help users analyze and visualize data effortlessly. Since its inception, Tableau has revolutionized the way businesses interact with data, making it accessible to both technical and non-technical users.Data visualization using Tableau helps organizations convert complex datasets into intuitive dashboards that highlight trends, patterns, and outliers at a glance.Common Challenges in Data Representation Solved by TableauSome of the prominent challenges Many organizations struggle with today are as follows:Data overload – Too much information can obscure meaningful insights.Misinterpretation – Poorly designed visuals can lead to incorrect conclusions.Cognitive biases – Personal biases may influence how data is perceived.Tableau addresses these challenges by offering interactive and customizable visualization options. It ensures that data is presented in a way that is both accurate and easy to understand.Key Features of TableauBy combining powerful analytics with an approachable interface, Tableau enables organizations to visualize data with clarity, collaborate efficiently, and move from insight to action faster.Here are some notable features of the tool that make it so efficient:Broad Data Connectivity & Smart PreparationTableau simplifies the complex process of gathering and preparing data from diverse sources, ensuring teams spend less time cleaning data and more time analyzing it.Multi-source connectivity: Excel, SQL, Oracle, Snowflake, Google BigQuery, AWS, and moreTableau Prep Builder: Visual interface for cleaning, joining, and shaping dataLive or Extract mode: Choose real-time access or high-performance in-memory data extractsDrag-and-Drop Visual AnalyticsDesigned for business users, Tableau enables fast, flexible visual exploration without writing a single line of code.User-friendly interface: Drag-and-drop elements to build charts and dashboardsWide range of visuals: Bar, line, pie, scatter, heatmaps, histograms, Gantt charts, treemaps, etc.Responsive design: Automatically adjusts to different screen sizes and devicesAdvanced Geospatial CapabilitiesTableau makes spatial data analysis accessible, turning location-based data into strategic insights with just a few clicks.Auto geo-detection: Recognizes geographic fields like country, city, ZIP codesCustom map layers: Import shapefiles, GeoJSON, and KML for detailed mappingLayered maps: Combine multiple data sources to analyze regional patterns and territoriesStorytelling with Interactive DashboardsTableau goes beyond static charts by enabling interactive, narrative-driven dashboards that engage decision-makers and drive alignment.Integrated views: Combine multiple charts into a single dashboard experienceInteractive filters & parameters: Drill down and explore data dynamicallyStory points: Guide users through a data narrative for deeper engagementEnterprise-Ready Collaboration & GovernanceBuilt for scale, Tableau supports secure sharing, real-time collaboration, and governed analytics across the enterprise.Publishing & access control: Share dashboards via Tableau Server, Cloud, or embedded optionsRole-based permissions: Maintain strict control over who can view, edit, or share dataScalable architecture: Supports departmental teams to global deploymentsCore Benefits of Using Tableau for Data VisualizationAs data volumes grow, the core business advantages of Tableau become even more critical to recognize. Here’s a look at the key benefits it delivers:Cost-Efficiency and Scalable LicensingTableau stands out for its flexible licensing models, making it a cost-effective option, especially for small to mid-sized enterprises. Compared to other platforms like Qlik or Business Objects, Tableau delivers enterprise-grade functionality at a fraction of the cost, without compromising on performance or features.Mobile Responsiveness for Real-Time InsightsIn a mobile-first business environment, Tableau ensures that decision-makers can access dashboards and reports from smartphones or tablets, anytime, anywhere. Its responsive design adjusts to different screen sizes, providing optimal viewing and interaction across devices, keeping business leaders connected to critical data on the go.Seamless Integration with Scripting LanguagesTableau enhances analytical flexibility by integrating with Python, R, and other popular scripting languages. This allows users to offload heavy computations, run predictive models, and perform advanced statistical analysis, all within Tableau’s environment, enabling deeper insights and faster decision-making.Rich, Customizable VisualizationsWhether it’s bar charts or geospatial heat maps, Tableau’s visualization options are extensive and customizable, allowing users to create highly engaging, meaningful visuals tailored to business needs.Intuitive User ExperienceTableau’s drag-and-drop interface makes advanced analytics accessible even to non-technical users, fostering a truly data-driven culture across all business functions.Best Practices for Effective Data Visualization in TableauCreating impactful visualizations requires more than just selecting the right tool. It involves a deep understanding of data representation techniques, user experience design, and storytelling. When used effectively, Tableau can turn raw data into powerful narratives that drive business success.Choosing the Right Chart TypeSelecting the appropriate chart type is crucial for conveying insights effectively. Consider the following:Bar charts – Best for comparing categorical data.Line graphs – Ideal for showing trends over time.Heat maps – Useful for identifying correlations in large datasets.Scatter plots – Effective for displaying relationships between two variables.Using the wrong chart type can lead to misinterpretation, so it’s essential to match the visualization to the data context.Designing Interactive DashboardsAn interactive dashboard enhances user engagement by allowing viewers to filter and drill down into data. Best practices include:Keeping dashboards clean and uncluttered.Using filters and parameters for personalized insights.Ensuring dashboards are mobile-friendly for accessibility on different devices.Color and Formatting StrategiesColors should be used strategically to highlight key insights rather than merely for decoration. Consider these guidelines:Stick to a consistent color scheme to maintain visual coherence.Use contrasting colors to emphasize important data points.Ensure accessibility by avoiding color combinations that are difficult for color-blind users to distinguish.Storytelling with DataBeyond static reports, using Tableau for data visualization allows users to create compelling data stories. The Story feature in Tableau helps guide audiences through a sequence of insights, ensuring that data-driven narratives remain clear and engaging.Advanced Tableau Techniques for Better InsightsMastering Tableau goes beyond basic charts and dashboards. Advanced techniques allow users to refine their analysis, automate data preparation, and extract deeper insights that drive strategic decisions. By leveraging these powerful capabilities, businesses can gain a competitive edge in data-driven decision-making.Using Calculated Fields and ParametersFor deeper analysis, Tableau offers calculated fields, allowing users to create custom formulas for:Aggregations (total sales, average revenue).Conditional logic (IF statements for segmenting data).Dynamic calculations based on user inputs.Leveraging Tableau Prep for Data CleaningData quality is critical for accurate analysis. Tableau Prep simplifies data cleaning by:Identifying missing or duplicate values.Merging and transforming data from multiple sources.Automating data preparation workflows for efficiency.Integrating AI and Predictive AnalyticsTableau’s AI-driven features allow users to:Forecast trends using built-in predictive models.Identify outliers with anomaly detection.Gain automated insights through natural language processing.These capabilities enhance the analytical power of data visualization using Tableau, making it a valuable tool for proactive decision-making.Real-World Applications of TableauTableau is widely adopted across industries, transforming how businesses and organizations interact with data.Business Intelligence & Corporate AnalyticsOrganizations leverage Tableau for:KPI tracking – Monitoring financial and operational performance.Supply chain optimization – Identifying bottlenecks and improving efficiency.Sales performance analysis – Understanding customer trends and forecasting revenue.Marketing and Customer InsightsMarketing teams use data visualization with Tableau to:Track campaign performance across different channels.Analyze customer sentiment using social media and survey data.Identify market trends to refine targeting strategies.Healthcare and Public Data AnalysisIn the healthcare industry, Tableau helps visualize:Patient demographics and treatment outcomes.Disease outbreak patterns, such as COVID-19 dashboards.Hospital resource allocation for optimizing care delivery.The Future of Data Visualization with TableauNow, you may be wondering, “is Tableau a good visualization tool for my organization?”The only way to truly judge that is by weighing how other data visualization tools like Power BI compare with Tableau. However, Tableau offers a scalable solution for all levels of expertise, making data interpretation more accessible and efficient for everyone from beginners to experienced analysts.By following best practices in chart selection, dashboard design, and interactive storytelling, users can find powerful insights that drive better decision-making.As organizations continue to embrace data-driven strategies, using Tableau for data visualization will remain a crucial skill for analysts, marketers, and decision-makers. If you haven’t explored Tableau yet, connect with us to experience the power of visual analytics firsthand.

Read More
sundew

Blog

How the 5 Stages of Design Thinking methods help to create user-centric designs?

What is Design Thinking?Design thinking is an actionable approach to combat with several problems that cannot be solved with standard methods and approaches. It is an ideology to crack the tough nut by adopting a designer’s mindset and dealing with the issues from a user’s perspective. The ‘design thinking’ processes foster creativity, innovation, user-centricity, and out of the box thinking. It aims at landing on practical solutions that are-Economically Feasible: The process you want to implement for user-centric solutions must be economically affordable by the business.Technically viable: The ideology can be actualized into functional products or processes.Tailor-Made for the user: As the solutions are user-centric, they meet the desire and requirement of a real human.It is extremely important to prioritize human needs and tackle the complex problems that were previously ill-defined. With a methodical approach in design-thinking processes, you have to reconstruct the crisis in a human-centric way, stimulate your thoughts and bring on as many ideas as possible in brainstorming sessions, narrow down the relevant ones, and adopt a hands-on approach in prototyping and evaluating.Let’s get into the 5 Stages of Design Thinking Process1. Empathy to understand user-centric problemsThe concept of design thinking was first initiated to respond to human needs. The first stage focuses on how to understand the problems before tackling it. Humans, not technology are the drivers of innovation. Hence, stepping into the user’s shoes to understand their experience is one of the most essential steps to empathize with your target audience.Empathy allows designers to gain insight into the user’s mind to acquire a substantial amount of information regarding their needs, and problems that trigger the need for certain product development.2. Defining the ProblemIn this stage, the designers need to put together all the information they have gathered in the empathize stage. They analyze their observations, synthesize them to define the primary problem. It must be noted that the problem statement must be defined in a human-centric manner.Instead of clarifying the problem as your company’s wish or need, define it from the user’s perspective. For example, instead of saying, “We need to increase the personal care and hygiene products among women by at least 10%, a far better way to define the crisis would be, “women need to use personal care products and maintain their hygiene to be healthy.”3. IdeationDesign thinking is a solution-based process. In this stage, the designers generate ‘out of the box’ ideas and come up with different potential solutions. After analyzing and synthesizing the human-centered problems in the earlier stage, the ideation stage gives room to evoke new ideas and think about alternative ways to evaluate the problems. Several ideation techniques are-BrainstormBrainwritingWorst possible ideaScamperBrainstorm technique and the worst possible idea sessions are judgment-free zones which help the designers to stimulate free thinking. At the beginning of the ideation phase, it is important to get as many ideas as possible. By the end of the ideation process, you must pick some relevant ideas so that you can move forward to providing the elements required to implement those.4. Experimentation with PrototypeHaving identified the best possible solution, we aim at implementing those solutions into prototypes at this stage. Prototypes are the ‘scaled-down’ versions of the concept the designers want to test. Prototyping strategies must be tangible to test on the real users.Depending upon what they are testing, the designers can work on interactive digital or basic paper model prototypes. They are tested and lead to three possible outcomes. Either they are accepted or they are re-examined, improved, or they are rejected based on the users’ feedback.As design thinking is an interactive approach, the designers must deal with the repeated changes throwing at them. They have to omit certain things, uncover the flaws in the prototype, and revamp it accordingly.5. TestingHaving narrowed down the best solutions during the prototyping stage, the designers rigorously test it in the final stage. This phase helps them to identify where the prototype works well and where it needs some improvement. When a testing session has been run, the evaluators observe how the target users have reacted. With an observation of the user-prototype reaction and verbal feedback of the real users, the designers amend their design or come up with a brand-new idea!With a profound understanding of these five stages of design thinking processes, the designers will be empowered to implement the Design Thinking methods to solve complicated user-centric problems.With user needs constantly evolving, even design approaches are shaping the future of dashboard designing, making business intelligence tools more interactive and user-centricThinking about Implementing Design Thinking? Consult with us!Write to us [email protected] ring us at +91-98367-81929.

Read More
sundew

Blog

Six Instagram Marketing Tips for Brands in 2019

Instagram is one of the most popular social networks in the world. Last June, it exceeded the billion-user mark. It started as a simple platform for sharing photos and videos with people having similar interests and now it has become a valuable marketing tool for businesses. They are investing more and more on Instagram to promote their products. Here are some tips for using the app to highlight your business.Use user-generated contentIt’s about delivering spontaneous content, like videos and live broadcasts. This type of communication makes it possible to value the human factor, too often invisible in B2B companies, in order to build credibility with potential customers. An excessively professional image may produce an impression of coldness and distance. Nowadays, customers enjoy meeting people who are behind the branding of a company.Combine spontaneity and varietyWith Instagram, posting a photo or video is extremely easy. The time spent, creating the content is thus minimized. The platform allows users to publish different types of content without planning or editing. Diversifying content allows a business not only to reach different audience segments but also to reveal different facets of its business. It is therefore important to focus on variety, rather than confined to monotonous series of posts.Do actively invest in your nicheBesides publishing content, it is important to take an active part in the conversation. In addition to publishing images and videos, a company must be careful to respond to comments from its subscribers. A company that takes the time to interact with others/outsiders is more likely to receive interest in return.Tell a story with each postOn Instagram, the most popular companies are the ones that tell the most compelling stories. To attract a committed audience, you need to invest in high-quality visual storytelling, which allows your company to stand out and establish a consistent presence on the platform. This presence is not limited to the photo and video stream. The Stories feature of Instagram grabs more attention of the relevant audiences.Measure meaningful indicatorsAll indicators are not equal. It is best to focus on data that signals active engagement, such as comments or the number of new subscribers. These indicators make it possible to evaluate concretely the performances of the company and the effective quality of the generated exposure.B2B companies have their place on InstagramInstagram is admired mainly by B2C brands. However, the platform represents a real opportunity for B2B companies, provided these good practices are applied.Now you have a good idea of the steps to put in place to get started on Instagram. Set a specific number of goals and analyze the results of your marketing efforts.  After that, regularly post quality content. Remember to add a bit of storytelling to your descriptions to engage the conversation with your followers. Make Stories to announce big events or exclusive promotions. In case you need further amplification, feel free to get in touch with our experts at [email protected] or call us at +91-98367-81929.   

Read More

Thank You!

Excellent!

Successfully subscribed to Sundew Solutions newsletter!

Acknowledged