Send e-mail endpoint is found on the /api/send
path via POST
HTTP method.
This endpoint is used to send e-mail, it accepts the following parameters:
field | type | description | required |
---|---|---|---|
from |
string |
The e-mail address of the sender. | ✅ |
to |
string[] |
An array of recipients e-mail addresses that will appear on the To field. |
✅ |
title |
string |
The title of the e-mail. | ✅ |
message |
string |
E-mail message. | ✅ |
login |
string |
Your e-mail login to you be authentication in the Google e-mail service. | ✅ |
password |
string |
Your app password available by Google to be authenticate in the Google e-mail service. | ✅ |
username |
string |
Your username or alias. | ❌ |
To know more about the apps password, click here.
The API will go to return no content when your e-mail went to sended with success.
- If some of the required properties isn't sent for API request, an error HTTP
400
will be returned. - If an internal server error occurs during an API request, the API will return HTTP
500
error. - In case of unauthorized error, the API will return HTTP
401
error. This error is generated when login and password are invalid.
The API error object will contain the follow properties:
field | type | description | required |
---|---|---|---|
error |
string |
The error message returned from API. | ✅ |