Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eukolos/mail2operator
This project automates the process of sending invoices generated by the system to the export operator, reducing daily routine work in accounting and ERP.
https://github.com/eukolos/mail2operator
java-17 maven spring-boot-starter-mail spring-boot-starter-web
Last synced: 14 days ago
JSON representation
This project automates the process of sending invoices generated by the system to the export operator, reducing daily routine work in accounting and ERP.
- Host: GitHub
- URL: https://github.com/eukolos/mail2operator
- Owner: Eukolos
- Created: 2023-07-11T18:26:36.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-07-12T09:35:54.000Z (over 1 year ago)
- Last Synced: 2024-11-23T15:37:58.879Z (3 months ago)
- Topics: java-17, maven, spring-boot-starter-mail, spring-boot-starter-web
- Language: Java
- Homepage:
- Size: 142 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mail 2 Operator
This project automates the process of sending invoices generated by the system to the export operator. It receives PDF and XML files via HTTP requests and extracts variables from the XML. The variables are then used to send an email with the PDF attachment using Spring Boot Starter Mail. In this way, I reduce my daily routine work in my company where I work on accounting and ERP.
## Prerequisites
Before running the project, ensure that the following prerequisites are met:
- Java Development Kit (JDK) 17 or higher
- Apache Maven installed
- SMTP server credentials (for sending emails)
- Spring Boot Starter Web
- Spring Boot Starter Mail## Getting Started
Follow the steps below to set up and run the project:
- Clone the repository to your local machine:
```
git clone https://github.com/Eukolos/mail2operator.git
```- Navigate to the project directory and run with maven:
```
cd spring-boot-invoice-export
mvn spring-boot:run
```
## Usage
To send an invoice for export, you need to make an HTTP POST request to the appropriate endpoint. Include the PDF and XML files as multipart/form-data in the request body.Example request using cURL:
```
curl -X POST -F "[email protected]" -F "[email protected]" http://localhost:8080/upload
```
or Postman:Ensure that the pdf and xml parameters match the file names.
Result:
## Contact
This project was created by [Eukolos](https://github.com/Eukolos). Contributions are welcome!
If you have any questions or suggestions, feel free to contact the project maintainer at [email protected].