/MQP-Mail-Query-Protocol-

MQP (Mail Query Protocol) Core

Primary LanguageJava

MQP(Mail Query Protocol)

logo

MQP (Mail Query Protocol)

MPQ (Mail Query protocol)

A network protocol for sending and receiving messages and Mails over the Internet

How setup MQP?

1 - Install JAVA9 on your server

https://www.oracle.com/java/technologies/javase/javase9-archive-downloads.html

2 - Create an export database from "Database/MySql/mqp.sql" file

image

3 - Clone MQP from github or download an relase from github

git clone https://github.com/rezafarazi/MQP-Mail-Query-Protocol-.git

4 - Setup prots and paths on "Protocol.properties" file

x

5 - Setup network encription pattern on "EncriptList.json" file

code

6 - Start MQP on your vps or server

image

Http Api

Login

/Login -> POST
  body:
    username -> String
    password -> String

Signup

/Signup -> POST
  body:
    name -> String
    family -> String
    username -> String
    password -> String
    email -> String
    phone -> String

Check user exist

/CheckUser -> POST
  body:
    address -> String

List of user mails

/GetMailBox -> POST
  header:
    Auth -> Token

Get all mails with an user

/GetMailsOfUser -> POST
  header:
    Auth -> Token
  body:
    username -> username@domain

Send mail

/SendMail -> POST
  header:
    Auth -> Token
  body:
    title -> String
    content -> String
    address -> String

Update mail

/SendMail -> POST
  header:
    Auth -> Token
  body:
    title -> String
    content -> String
    address -> String
    mail_id -> Integer

Delete mail

/DeleteMail -> POST
  header:
    Auth -> Token
  body:
    address -> String
    MAILIDMAILID -> Integer

Seen mail

/SeenMail -> POST
  header:
    Auth -> Token
  body:
    address -> String
    MAILIDMAILID -> Integer

File upload

/SeenMail -> POST
  header:
    Auth -> Token
  body:
    file -> Multi part file