This endpoint allows you to retrieve a message by mid. You have the flexibility to retrieve spacific email based on it's id.
HTTP Request
GEThttps://api.mail4qa.com/emails/inbox
Parameter | Default | Required | Description |
---|---|---|---|
x-apikey | xxxxxxxxxxxxxxxxxxxxxxxxxx | Yes | API Credentials of your Mail4QA Account. |
Parameter | Default | Required | Description |
---|---|---|---|
[email protected] | Yes | Fetch all emails in provided mailbox | |
mid | xxxxxxxxxxxxxxxxxxxxxx | Yes | Fetch email by it's id |
This endpoint enables you to send a JSON message directly to your email. It functions similarly to emailing a message to your domain, but with the advantage of utilizing HTTP POST requests for programmatic injection of messages.
It's important to note that injected JSON messages can be structured according to your preferred schema. However, for the Web interface to properly display these messages, they should adhere to a standard email format, including fields like From, Subject, and Parts (refer to the "Fetch Message" section for more details).
HTTP Request
POSThttps://api.mail4qa.com/emails/httpinject
Parameter | Default | Required | Description |
---|---|---|---|
x-apikey | xxxxxxxxxxxxxxxxxxxxxxxxxx | Yes | API Credentials of your Mail4QA Account. |
Content-Type | application/json; charset=utf-8 | Yes | payload is in JSON format. |
Parameter | Default | Required | Description |
---|---|---|---|
to | [email protected] | Yes | email address where you want to inject in message |
from | [email protected] | Yes | email address from where you want to inject in message |
subject | Your Email Subject | Yes | email Subject that you want to inject in message |
message | Your Email Body | Yes | email Body that you want to inject in message |