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.
<form action="https://mail-it.example.com/[email protected]" 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.
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": "[email protected]",
"email_password": "aaaa bbbb cccc dddd",
"alias": {
"you_email": "[email protected]"
}
}' > /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
- Port:
-port <port_number>
- Port:
-log <path>
The wiki provides detailed instructions on advanced installations, such as service setup and reverse proxy setup.
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.