Function to send OTPs.
Parameters
Name | Description | Location | Type | Sample Value |
---|---|---|---|---|
otpId | Document ID of the otp | Body | String | jcbd...kdsn |
recipientEmail | Email ID of the recipient | Body | String | [email protected] |
Response
Sample 200
Response:
{
"msg": "mail sent"
}
Setting | Value |
---|---|
Runtime | Node (18.0) |
Entrypoint | src/main.js |
Build Commands | npm install && npm run start |
Permissions | any |
Timeout (Seconds) | 15 |
API Key to use Appwrite Sever SDK.
Question | Answer |
---|---|
Required | Yes |
Sample Value | 62...97 |
Documentation | Appwrite API Keys |
Database ID of verification database in appwrite.
Question | Answer |
---|---|
Required | Yes |
Sample Value | Zjc...5PH |
Documentation | Resonate |
Collection ID of otp collection.
Question | Answer |
---|---|
Required | Yes |
Sample Value | NXOi3...IBHDa |
Documentation | Resonate |
Email of the sender.
Question | Answer |
---|---|
Required | Yes |
Sample Value | [email protected] |
Documentation | Discord |
Password of the sender's account.
Question | Answer |
---|---|
Required | Yes |
Sample Value | HC1Itf...........dAAKF5o |
Documentation | Discord |