5-Step Mailpit Configuration for Offline Email Testing

  • Riju
    Riju Ghosh
  • sundew
    5 min.read
  • sundew
    December 3rd, 2024
  • Technology
sundew

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!

Thoughts and Trends
Across Our Focus Areas

sundew

Blog

User Experience Design Process: 6 Steps to Succeed

The user experience design process is a strategic framework that guides designers in turning ideas into intuitive, user-friendly interfaces. Coined by Don Norman in the 1990s, UX design has grown into a complex and dynamic discipline in modern times, offering both challenges and opportunities for designers.Each stage of the process plays a vital role in ensuring that the end product is not only functional but also easy and enjoyable to use.By following a well-defined process, designers can ensure their creations meet user needs and deliver effective, engaging experiences. Whether you’re new to the field or an experienced professional, understanding this process is essential for a successful outcome.What are the 6 stages of the UX design process?Let’s take a deeper look at the steps of the user experience design process that drive a successful UX design.Step 1: EmpathizeEmpathy is the foundation of exceptional user experiences, and it begins with user and market research.To design impactful products, you must first understand the practical and emotional needs of your users. Apple serves as a prime example of a company that successfully addressed this challenge. It revolutionized smartphone adoption through the implementation of simplified technology and intuitive user interfaces.The process to reach there begins with research to uncover what users do, say, and feel through:Customer Journey Mapping: Visualizing the steps users take when interacting with your product.Usability Testing: Collecting direct feedback on what works and where improvements are needed.Techniques like interviews, surveys, focus groups, and ethnographic studies help uncover user needs. Some of the important questions to address here include:Why does this product need to exist? Who is it for? What problems will it solve?This, along with competitive and industry analysis, offers context, enabling designers to identify real problems and prioritize solutions that resonate deeply.Step 2: DefineThe defining phase focuses on establishing what needs to be created and why based on insights from the empathizing stage.Research methods involve both quantitative and qualitative approaches. The analysis of this data results in:Journey maps that visualize user interactions and experiencesPersonas that provide data-driven profiles of typical usersAffinity diagrams that organize grouped user insightsAdditionally, "How Might We" statements are generated to serve as problem-solving prompts aligned with user goals. Here, it’s also important to keep in mind how crucial design is in the brand strategy of an enterprise.This process equips the team with practical tools to drive user-centered design forward.Step 3: Analysis & IdeationThis stage is the bridge between creative exploration and implementation, where problems get translated into solutions. The process begins by organizing information from the research phase to develop user personas, user stories, wireframes, and high-level strategies. These elements help address user needs effectively.The designers then collaborate to outline how the product will be built, identifying necessary technologies and establishing a roadmap with clear milestones. The following tools & techniques are of significance here:Sketching & Diagramming: Visualizing ideas with rough layouts or a user experience Collaborative Platforms: Tools like Miro or Mural enable seamless brainstorming, especially for remote or space-limited teams.Once brainstorming concludes, the team critically evaluates and refines ideas to identify the most viable options. This may involve combining or voting on concepts, ensuring the best solutions are chosen for prototyping.Step 4: DesignWith a clear understanding of your users and a solid plan, the design phase begins. This stage focuses on building an interface that prioritizes user experience while balancing functionality and aesthetics.Start by considering the overall layout, navigation, and key elements of each page. Think through how users will interact with your interface and ensure critical information is easy to find.This phase integrates both UX and UI design, including:Information Architecture: Structuring content for clarity.Navigation: Ensuring intuitive pathways for users.Layout: Designing an organized, user-friendly framework.Usability & Accessibility: Making the design inclusive and efficient.Microcopy: Crafting clear, concise messaging to guide users.As you transition from wireframes to high-fidelity designs, visual elements like color schemes, typography, and iconography take shape. Together, these elements create a polished, engaging, and seamless interface that enhances user interaction.Step 5: PrototypingThe prototyping stage is the critical link between ideation and development, ensuring the product is both functional and user-focused. This phase transforms user insights, personas, and journey maps into interactive experiences, enabling teams to validate their designs.Using tools like Figma, InVision, and Axure, UX designers create prototypes ranging from simple sketches to advanced digital mockups. These models demonstrate navigation, task flows, and layouts, offering a realistic glimpse of the final product, with the collaboration of professionals like:UX Designers who ensure the product is intuitive and user-friendly.Content Writers who craft concise, engaging copy that aligns with the brand voice.UI Designers who prioritize aesthetics and usability while ensuring accessibility for diverse users.Prototyping also sets the stage for user testing, providing actionable insights into what works and what doesn’t. Step 6: Testing & LaunchTesting is a critical phase when discovering “What is the user experience design process?” Here, prototypes undergo multiple rounds of evaluation to refine the final product. User feedback, often gathered through various testing methods, ensures the product evolves into its best version. Common testing methods include:A/B and Multivariate Testing: These tests compare different design versions to determine which performs better in terms of usability, task completion, and efficiency.Quantitative Analysis: It offers precise numerical insights into user interactions, including metrics like error rates, task completion times, and user satisfaction ratings.Surveys: Gathering user opinions through surveys helps identify preferences and pain points.Usability Tests: Observing users as they interact with the prototype reveals where they struggle or excel, providing actionable insights.Card Sorting: This method helps understand how users mentally organize information and is often used for improving navigation structures.After each testing cycle, designers refine the product based on cumulative feedback, ensuring a polished, user-friendly final result before launch.After testing and refining the high-fidelity user interface, the product is now ready for the next phase - web development. With all necessary changes made, the product is primed for launch, ensuring a smooth transition from design to development.While the primary know-how of the user experience design process steps ends here, the ongoing phase of refinement never does. As users interact and provide feedback after the initial release, continuous enhancements are essential to optimize user experience.This ensures the product adapts to evolving needs and stays relevant to user expectations over time. The Way Ahead: Lean UXThe UX design process is more like a train than a puzzle—there's a logical sequence that ensures efficiency and the success of the product. However, in real-world scenarios, especially when working with a live product and a long list of features to be shipped, a rigid, linear approach can become cumbersome.The only way to overcome these demands is to shift to Lean UX, an iterative and agile framework that works in 2- or 4-week cycles. Unlike traditional waterfall methods, Lean UX allows teams to quickly build, test, and refine products based on real-time feedback. Integrating the agile user experience design process can be a game-changer for enterprises, especially when working with a live product and a long list of features, and at Sundew, we understand that.Adopt agility to stay ahead of the curve and ensure your product and services evolve in line with user needs while delivering faster, more effective results.

Read More
sundew

Blog

User Experience Design vs Interaction Design Explained: Roles, Goals, and Impact

In the world of digital product design, user experience design vs interaction design is a common debate seen today. While interaction design is all the rage now, and businesses are investing tons in the same, many fail to understand that it’s a subset of the good ol’ UX design, and not an alien concept altogether.While UX design shapes the overall journey a user takes, interaction design focuses on the finer details - how users engage with a product in real-time. As businesses strive to meet rising user expectations, understanding the synergy between UX and interaction design is crucial. Let’s dive into their differences, their roles, and why interaction design is now emerging as a game-changer, paving the way for next-level intuitive digital experiences.Interaction Design vs User Experience Design: What Is the Difference?If you are wondering what the difference is between user experience design and interaction design, the clue lies in the names. UX puts the “U” for "user" front and center. It’s all about how people feel when they interact with a product or service, with empathy being the driving force here. IxD is about interactions, not always involving a person. These could be between a user and a product, sure. But they could also happen between two systems talking to each other. Some great inter-machine uses of interaction design examples include autopilot and onboard navigation in an aircraft. IxD focuses on what happens and how it flows, whether or not a human is involved.While both interaction design (IxD) and user experience (UX) design aim to enhance how users engage with digital products, they operate simultaneously at different levels. Let’s understand each separately for better clarity on the user experience design vs interaction design debate.UX DesignThe user experience (UX) design process is all about shaping how users overall feel and interact with a product. It goes beyond aesthetics, encompassing functionality, usability, and accessibility, ensuring a seamless experience from start to finish. By blending elements like interaction design, information architecture, usability, and human-computer interaction (HCI), UX design aims to make digital products more intuitive, efficient, and enjoyable. Features:Understanding the User: Great UX design starts with a deep understanding of the user’s needs, behaviors, and challenges. Designers rely on user research, personas, and behavioral analysis to create experiences that resonate with the target audience.Data-Driven Design Decisions: Effective UX design relies on qualitative and quantitative research methods. These include usability testing, analytics, and surveys to inform design choices and optimize user interactions.Structuring Information for Clarity: UX designers organize content logically to ensure users can navigate a digital product effortlessly. Through well-planned information architecture, clear navigation systems, and intuitive wireframes, they make interactions smooth and frustration-free.Interaction Design (IxD)Interaction Design is a specialized subset of UX design that focuses specifically on the micro-level dynamic elements of a digital product. It shapes the structure and functionality of UI components like buttons, menus, forms, and transitions, creating intuitive pathways that help users achieve their goals effortlessly. Every click, swipe, hover, or animation is strategically designed to guide user behavior and enhance usability. FeaturesPutting Usability First: IxD bridges the gap between form and function. Every element, from buttons to transitions, is built to support real goals, making tasks feel seamless.Simplicity & Intuitive Navigation: The best interfaces are those that users don’t have to think about. Interaction design simplifies complexity by:Presenting information in a clear, structured wayUsing recognizable patterns and UI elementsRemoving unnecessary friction from the user journeyAdaptability Across Devices: Responsive design ensures a seamless transition across multiple screen sizes and input methods. This offers a consistent and engaging experience whether on desktop, tablet, or mobile apps.Clear & Immediate Feedback: Users need confirmation that their actions are being registered. Interaction design incorporates visual, auditory, or haptic feedback, such as button animations, error messages, or progress indicators. This provides clarity and enhance user confidence.Engaging & Interactive Elements: Well-designed interaction elements ensure that: Buttons and links are easily distinguishableTransitions feel smooth and purposefulEvery action has a clear and meaningful responseHere's a user experience design vs interaction design comparison to highlight their differences:​How Does Interaction Design Elevate UX Design?Both ​Interaction Design (IxD) and User Experience Design (UX Design) are integral components of the digital design landscape, each with distinct roles and focuses. However, looking at their interdependability, it can be safely said they are not mutually exclusive.While IxD takes UX design to new heights, it isn’t unusual to ask, “Is user experience central to interaction design?”It absolutely is!Interaction Design operates within the broader scope of User Experience Design. Simply put, UX defines the experience, while IxD brings it to life through dynamic interactions.By integrating strong interaction design principles into UX design, businesses can create products that don’t just work, but feel effortless and delightful to use.When done right, interaction design ensures that every user action feels natural and fluid, leading to better engagement, higher retention, and an overall improved digital experience.Is Interaction Design the Future of UX?While Interaction Design lives within the broader umbrella of User Experience design, it doesn’t mean they are interchangeable.A seamless product experience requires both. A strong UX without thoughtful interactions can leave users confused. Flawless interactions without a user-centered foundation can lack meaning. And here’s the important part: not every UX designer is skilled in Interaction Design, and not every interaction designer excels at UX.This is why an effective design strategy should involve understanding the distinctions highlighted in this user experience design vs interaction design comparison. These help businesses bring the right mix of talent on board when building teams. This way, they can make sure the products they create not only function right, but also feel right.

Read More
sundew

Blog

Revolutionizing Business Workflow Automation with RPA

Imagine a workplace where tedious, repetitive tasks are no longer a drain on your team’s time and energy. With business workflow automation, this vision becomes a reality. But how does it work?Often implemented through Robotic Process Automation (RPA), this technology has revolutionized the way organizations operate. By automating routine processes, RPA empowers businesses to optimize workflows, reduce errors, and maximize productivity without overburdening employees.This enables businesses to redirect valuable human resources toward strategic, high-value initiatives.Curious about how your enterprise can unlock this potential? Keep reading to discover the key processes that can be automated with RPA, the steps to implement, and the benefits it brings.The Role of RPA in Business Workflow AutomationRobotic Process Automation (RPA) applies artificial intelligence (AI) and machine learning (ML) to automate repetitive, rule-based tasks previously handled by humans. These software robots, or “bots,” interact with systems and applications as humans do, retrieving data, processing information, and completing tasks with precision and speed.Think of RPA as your organization's tireless digital workforce, operating 24/7 accurately. It is becoming a critical weapon for companies seeking to boost efficiency and stay ahead of the competition.Powered by artificial intelligence (AI) and machine learning (ML), it transcends simple automation to create secure and scalable workflows. It also acts as a guardrail for practical AI usage within larger orchestration platforms.Why RPA Matters: Key Advantages in Business OperationsSo, why are businesses increasingly adopting RPA? The answer is simple: the significant advantages it offers.For companies looking to stay competitive, RPA has become an indispensable asset. It is gaining a lot of momentum across modern organizations and diverse industries, simplifying the way they approach their business processes in the following ways: Enhanced Productivity and Resource AllocationAutomating repetitive business processes frees employees from mundane responsibilities, allowing them to concentrate on more valuable work. This shift not only boosts overall productivity but also increases job satisfaction and employee engagement while ensuring optimal use of resources.Improved Accuracy Manual processes are often prone to human error. RPA minimizes these mistakes by executing tasks consistently and precisely, enhancing data accuracy, compliance, and quality control across the board.Cost Optimization and Increased EfficiencyRPA minimizes the need for manual work, leading to reduced operational costs. Organizations can redirect resources toward strategic initiatives, streamline workflows, and realize substantial efficiency gains.Scalability and FlexibilityRPA equips businesses to scale operations swiftly, adapting to fluctuating workloads, seasonal demands, and evolving market conditions. This technology offers the agility to respond to changing business needs, ensuring a competitive edge.Enhanced Customer ExperienceEnterprises relying on RPA can provide superior customer experiences with faster response times, personalized interactions, and streamlined processes. Automating customer service tasks, such as email replies and chatbot interactions, enables businesses to deliver prompt and efficient support.Where can RPA be used to automate business workflows?Organizations across all industries stand to gain from the transformative power of workflow automation, streamlining operations, and driving efficiency. To highlight its versatility, here are some business workflow automation examples showcasing how workflow automation can be applied across various industries and departments:HealthcareWorkflow automation is significantly impacting the healthcare industry by simplifying complex, time-consuming tasks. Medical providers can leverage RPA tools to create staff schedules and manage on-call rotations seamlessly. They also streamline critical processes like patient admissions, discharges, and the transfer of electronic health records. By automating these routine tasks, healthcare workers can dedicate more time and energy to focus on their core responsibility, delivering high-quality patient care.Human ResourcesAutomation is revolutionizing HR by simplifying processes like timesheet approvals, personnel management, and employee onboarding. Processes like onboarding, often bogged down by repetitive administrative tasks, become seamless with Robotic Process Automation (RPA).RPA can generate and send offer letters, trigger workflows when new accounts are created, and digitize employee paperwork with electronic capture systems. This eliminates manual effort, significantly reducing onboarding time—sometimes by as much as tenfold—while improving efficiency and making life easier for HR teams.Similarly, payroll processing, a traditionally tedious task, benefits greatly from automation. RPA bots can standardize and automate tasks such as calculating salaries, overtime, commissions, bonuses, deductions, and expenses. Instead of manually reviewing spreadsheets or writing checks, a well-designed bot handles payments with accuracy and speed.Finance and BankingIn the finance and banking sector, workflow automation is a powerful tool for streamlining operations and improving accuracy. Financial institutions and enterprise finance teams use automation to handle tasks like data entry and account approvals effortlessly. It also simplifies internal processes such as managing paid time off requests and processing salary adjustments, saving time and reducing errors while enhancing efficiency across the board.Insurance and Home WarrantyInsurance involves a lot of paperwork that can be unloaded from the human workforce and sped up using RPA, riding on the trend of hyper-automation in the industry.When paired with AI and ML, RPA streamlines several complex and repetitive processes in the insurance and home warranty sector, such as:Policy Management: RPA automates contract generation, policy updates, renewals, and reminders, offering a smoother experience for policyholders while reducing administrative tasks.Claims Management: Insurers can handle policy claims faster with automated data extraction with OCR, aggregating information, verifying claims, and detecting fraud. Underwriting: RPA pulls and verifies customer data, flags suspicious applications, and calculates policy rates for standard cases, speeding up the underwriting process and improving accuracy.Information TechnologyIn IT, automation is a key enabler that supports DevOps teams and streamlines various processes. From automating software development pipelines and code testing to managing data collection, service requests, and new account setups, automation boosts efficiency across the board. Workflow automation examples in IT include using RPA to automate the testing of a new e-commerce app. This accelerates development cycles and ensures faster, more reliable product launches.Customer ServiceBusiness workflow automation in customer service speeds up ticket resolution and repetitive tasks like data entry, freeing up the workforce while improving customer experience.For example, instead of manually filling out customer profiles, businesses now use RPA to automatically gather and update data, ensuring accuracy and saving time.When launching an e-commerce website, for instance, businesses can integrate RPA to automate tasks like order tracking, processing returns, and handling customer inquiries. By instantly updating order statuses, addressing customer concerns, and managing returns, RPA enables faster response times. This leads to more efficient operations and significantly enhances the overall customer experience.Sales and MarketingSales and marketing teams can use RPA to automate proposal approvals, connect salespeople with website leads, and generate task lists for scheduled meetings.Another crucial part of sales workflows is invoice processing, which can also be automated with RPA. Manual invoice handling involves dealing with various file formats and attachments and can be time-consuming. With RPA, invoices are processed automatically, extracting and organizing data without human input. This streamlines the process, reducing errors and freeing up resources for more strategic tasks.7 Key Steps to Automate Business Workflows Successfully Implementing business workflow automation is a strategic process that can transform your business operations. But, success lies in following a structured approach. Here’s a step-by-step guide to help you navigate the journey:1. Pinpoint Automation OpportunitiesTake a closer look at your operations to identify bottlenecks. Focus on repetitive, manual tasks prone to errors or inefficiency. Prioritize high-impact processes that consume significant time and resources.2. Break Down the ProcessMap out every step of the process you plan to automate. Understand how tasks flow, where delays occur, and how information is transferred. This clarity is essential for designing an efficient automated workflow.3. Set Business GoalsWhat does success look like for your organization? Define clear goals, whether it’s:reducing costsboosting productivityeliminating errors improving speedThese objectives will shape your automation strategy.4. Choose the Right ToolsNot all workflow business workflow automation tools are created equal. Research options that fit your needs, considering scalability, features, and integrations. Select the workflow automation software that aligns with your goals and budget, ensuring it can grow with your business.5. Roll Out and Educate Your TeamIntroduce the automation tool with a well-thought-out implementation plan. Equip your team with training sessions and resources to familiarize them with the software. Encourage open communication to address any concerns and foster adoption.6. Measure Performance and RefineOnce workflows are automated, monitor them using key performance indicators (KPIs). Analyze metrics like time savings, error reduction, and ROI to determine whether the automation meets your goals. Use these insights to tweak and optimize workflows.7. Focus on Continuous ImprovementAutomation isn’t a one-and-done process. Regularly review workflows, gather feedback from employees, and make adjustments to enhance efficiency. Stay agile to adapt to new challenges and evolving business needs.Future OutlookRPA has come a long way. It is here to stay and, more so, within the wider scope of AI and combined with other complementary emerging technologies, like Gen AI. According to a recent Statista report, the robotic process automation software market was valued at $3.7 billion in 2022. With a projected compound annual growth rate (CAGR) of 36.6% over the next decade, the market is set to surge to an impressive $81.8 billion by 2032. This rapid growth highlights the increasing demand for automation technologies as businesses look for more efficient ways to streamline operations and improve productivity.Partnering with Sundew for your business workflow automation journey sets you up for success. With our RPA expertise and a forward-thinking mindset, we offer comprehensive services, from initial consultation to workflow design, implementation, thorough testing, and ongoing support.Schedule a consultation today, and let us help you drive your enterprise toward innovation and achieve sustainable growth. 

Read More

Thank You!

Excellent!

Successfully subscribed to Sundew Solutions newsletter!

Acknowledged