New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

simple-email-client

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-email-client

Simple Email Client built with JavaFX and SMTP Mail.

latest
npmnpm
Version
1.0.1
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

Simple Email Client

  • A JavaFX-based desktop application for sending emails via SMTP protocol. This lightweight email client provides a simple and intuitive interface for composing and sending emails.

Features

  • Simple SMTP Connection: Connect to any SMTP server using hostname and port Email Composition: Compose emails with sender, receiver, subject, and message body
  • Real-time Status Updates: Get immediate feedback on connection and sending status
  • Clean JavaFX Interface: Modern, user-friendly graphical interface
  • Error Handling: Robust error handling and user feedback

Technologies used

  • JavaFX 21.0.1: GUI framework for the user interface
    • javafx-controls: UI controls (buttons, text fields, etc.)
    • javafx-fxml: FXML support for UI design
    • javafx-graphics: Graphics rendering
  • Jakarta Mail 2.0.1: Email sending functionality (SMTP protocol)
  • Maven 3.x: Build automation and dependency management
  • JUnit 5: Testing framework

Prerequisites

  • Papercut SMTP(Required for Testing)
    • Papercut SMTP is a simple SMTP server for testing email functionality locally without actually sending emails to real addresses.
    • Download Papercut
      • Windows: https://github.com/ChangemakerStudios/Papercut-SMTP
    • SMTP server will start on localhost:25 by default

Setup

  • Before running on the application:
    • Launch Papercut SMTP
    • Verify it's running on the default port:
    • Papercut: localhost:25
    • Configure SMTP setting in the actual application:
    • Host Name: localhost
    • Port Number: 25
    • Sender: Any email address
    • Receiver: Any email address

Usage

  • Connect to SMTP Server
  • Enter Host Name: localhost
  • Enter Port Number: 25 (or 2525 for smtp4dev)
  • Click Connect
  • Status should show "Connected"
  • Compose Email
  • Enter Sender email address
  • Enter Receiver email address
  • Enter Subject
  • Type your Message in the text area
  • Send Email
  • Click Send button
  • Check status for confirmation
  • Open Papercut/smtp4dev to view the "sent" email
  • Close Connection
  • Click Close button when done
  • Status should show "Connection Closed"

Testing with Papercut

  • Why Use Papercut? Papercut is a local SMTP server that:
    • Captures all outgoing emails without sending them
    • Perfect for development and testing
    • No risk of accidentally sending test emails to real addresses
    • Provides a simple UI to view captured emails
  • Viewing Captured Emails
    • Keep Papercut running in the background
    • Send an email using the application
    • Switch to Papercut window
    • You'll see the email appear in the inbox
    • Click on it to view the full email content

Project Structure

Simple-Email/ |---jdeploy/ | |---publish/ | |---package.json | |---README.md | |---jdeploy-bundle/ | |---icon.png | |---jar-runner.jar | |---jdeploy.js | |---Simple-Email-Client.jar |---jdeploy-bundle/ | |---icon.png | |---jar-runner.jar | |---jdeploys.js | |---Simple-Email-Client.jar |---node_modules/ |---target/ | |---Simple-Email-1.0-SNAPSHOT.jar | |---Simple-Email-Client.jar |---src/ | |---main/ | | |---java/ | | | |---legecy/ | | | |---panda/ | | | |---Main.java | | | |---Email/ | | | |---Display.java | | | |---SMTP.java | | |---resources/ | | |---legecy/ | | |---panda/ | | |---styles/ | | |---styles.css | | |---images/ | | |---app.ico | | |---icon.png | |---test/ | |---java/ | |---legecy/ | |---panda/ | |---AppTest.java | |---Email/ | |---SMTPTest.java |---pom.xml |---README.md |---package.json |---package-lock.json

  • Key Classes:
    • Main.java: JavaFX application entry point, lauched the GUI
    • Display.java: Contains the UI layout and actions
    • SMTP.java: Handles SMTP protocol communication with the mail server

Troubleshooting

  • Common Issues
  • "Connection Failed" Error
  • Cause: Papercut/SMTP server is not running or wrong port
  • Solution: Verify Papercut is running Check the port number (25 for Papercut, 2525 for smtp4dev) Try telnet localhost 25 to test connectivity
  • Port Already in Use
  • Cause: Another application is using port 25

  • Solution: Use a different port (e.g., 2525) Stop other SMTP services Use smtp4dev instead of Papercut

  • Getting Help If you encounter issues:

    • Check that all prerequisites are installed
    • Verify Papercut is running
    • Check the status messages in the application

Download

Author

  • Josh T. "Legecy Panda" Masunda

Acknowledgements

  • JavaFX team for the excellent GUI framework
  • Jakarta Mail fofr SMTP functionality
  • Papercut team for the testing SMTP server
  • Maven community for the build automation

Note

  • This application is for educational and testing purposes. For production use with real SMTP servers, additional security features should be implemented.

From me

  • Thank you for your support and trust in my abilities. I hope we can work together again.

Contact me

FAQs

Package last updated on 17 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts