Skip to content

mail-it is a Spring API that allows web applications to easily send email to your mailbox using Google's email service

License

Notifications You must be signed in to change notification settings

VictorHachard/mail-it

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alpha GNU GPL 3.0 Codacy Badge actions-build-mail-it

mail-it

mail-it is a Spring API that allows web applications to easily send email to your mailbox using Google's email service.

mail-it offers features such as domain whitelisting and an alias system.

The domain whitelisting feature allows which domains are allowed to send emails through the mail-it API, providing an additional level of security and control.

The alias system allows sending emails using aliases instead of actual email address to protect privacy.

Code Example

<form action="https://mail-it.example.com/you_email@example.com" method="POST">
    <input type="text" name="fromName" placeholder="Your name">
    <input type="email" name="replyTo" placeholder="Your email">
    <input type="text" name="subject" placeholder="Your subject">
    <input type="text" name="message" placeholder="Your message">
    <input type="submit" value="Send Email">
</form>

The wiki contains additional code examples.

Installation

Setup for production

Install Java JDK 11:

sudo apt install default-jdk -y

Create the /opt/mail-it/ folder to place the Jar file:

sudo mkdir /opt/mail-it

Download the latest of mail-it:

sudo wget https://github.com/VictorHachard/mail-it/releases/latest/download/mail-it.jar

Allow executing file as program:

sudo chmox +x mail-it.jar

Create the setting.conf file in the /opt/mail-it/ directory:

sudo echo '{
    "access_control_allow_origin_url": [
      "https://example.com"
    ],
    "email_username": "gmail_sender@gmail.com",
    "email_password": "aaaa bbbb cccc dddd",
    "alias": {
        "you_email": "you_email@example.com"
    }
}' > /opt/mail-it/setting.conf

More server configuration options can be found in the wiki.

Run the mail-it:

java -jar /opt/mail-it/mail-it.jar -file /opt/mail-it/setting.conf

Options

  • Port: -port <port_number>
  • Port: -log <path>

The wiki provides detailed instructions on advanced installations, such as service setup and reverse proxy setup.

Contribution

If you would like to contribute to this project, there are several ways you can help. Some ideas include:

  • Reporting bugs or suggesting new features by creating a new issue on the project's repository
  • Implementing existing issues or working on new features by submitting pull requests
  • Improving the project's documentation
  • Sharing the project with others and spreading the word

Any contribution, no matter how small, is valuable and appreciated. If you have any questions or need help getting started, don't hesitate to create a new issue on the project's repository and ask for help. Thank you for considering contributing to this project!

For instructions on setting up a development environment, please refer to the wiki.

About

mail-it is a Spring API that allows web applications to easily send email to your mailbox using Google's email service

Topics

Resources

License

Stars

Watchers

Forks