Skip to content

404Piyush/TMS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Disposable Email Service

This project is a Discord bot that provides a temporary email service using the temp-mail.io API. It allows users to get a temporary email address, check for received emails, and view the email content and attachments if present. I made this program in 2022 (I was 16) when I was new to Java so I didn't use full potential of java hence the code is easy to read and understand.

Features

  • Get Temporary Email: Use the /get-mail command to generate a temporary email address.
  • Refresh Inbox: Use the "🔄️ Refresh Inbox" button to check if any emails have been received.
  • Copy Email: Use the "©️ Copy Mail" button to copy the email address to the clipboard.
  • Get New Mail: Use the "🆕 Get New Mail" button to generate a new temporary email address.
  • View Domains: Use the /domains command to retrieve a list of domains the temporary email service uses.

How It Works

  1. Generate Temporary Email: When you use the /get-mail command, the bot generates a temporary email address from a list of domains.
  2. Check for Emails: Click the "🔄️ Refresh Inbox" button to check if there are any emails received for the generated address.
  3. View Email Content: If an email is received, the bot sends the email content and any attachments to the user's direct messages (DMs).
  4. Handle Attachments: The bot saves and sends any attachments included in the received email.

Setup and Installation

  1. Clone the Repository:

    git clone https://github.com/404Piyush/TMS.git
    cd TMS
  2. Install Dependencies:

    This project uses the following dependencies:

    You can add these dependencies to your pom.xml if you're using Maven:

    <dependencies>
        <dependency>
            <groupId>net.dv8tion</groupId>
            <artifactId>JDA</artifactId>
            <version>5.0.0</version>
        </dependency>
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <version>2.8.9</version>
        </dependency>
        <dependency>
            <groupId>com.squareup.okhttp3</groupId>
            <artifactId>okhttp</artifactId>
            <version>5.0.0-alpha.6</version>
        </dependency>
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
            <version>5.1.3</version>
        </dependency>
        <dependency>
            <groupId>commons-codec</groupId>
            <artifactId>commons-codec</artifactId>
            <version>1.15</version>
        </dependency>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.11.0</version>
        </dependency>
    </dependencies>
  3. Configure the Bot Token:

    Replace "ENTER YOUR DISCORD BOT TOKEN" in Main.java with your Discord bot token.

  4. Run the Bot:

    mvn exec:java -Dexec.mainClass="code.Main"

Usage

  • /get-mail: Generate a temporary email address.
  • /domains: Get a list of domains the temporary email service uses.
  • Buttons:
    • 🔄️ Refresh Inbox: Check if there are new emails.
    • ©️ Copy Mail: Copy the current email address to the clipboard.
    • 🆕 Get New Mail: Generate a new temporary email address.

About

A temporary email service which is integrated with discord's bot api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages