This template is used for email verification with an OTP and verification button. Variables are dynamically replaced with your website data.
POST https://verifyone.bhanguz.com/api/1/send-mail
| Variable | Type | Description |
|---|---|---|
website_logo | string | URL of the website/app logo shown at the top & bottom of the email. |
website_name | string | Name of the website or service displayed in content. |
otp | string | Verification code shown to the user. |
button_url | string | URL for the verification button redirect. |
button_name | string | Label of the verification button. |
service_contact | string | Support/Contact page URL for user help. |
address | string | Organization’s mailing address (shown in footer). |
contact_number | string | Support phone number (shown in footer). |
| Variable | Sample Value |
|---|---|
website_logo | https://yourdomain.com/images/logo.png |
website_name | VerifyOne |
otp | 924680 |
button_url | https://yourdomain.com/verify |
button_name | Verify My Email |
service_contact | https://yourdomain.com/contact |
address | 123, Main Street, Mumbai, India |
contact_number | +91-9876543210 |
curl -X POST "https://verifyone.bhanguz.com/api/send-mail" \
-H "Content-Type: application/json" \
-d '{
"token": "YOUR_TOKEN",
"sid": "YOUR_SID",
"to": "user@example.com",
"website_logo": "https://yourdomain.com/images/logo.png",
"website_name": "VerifyOne",
"otp": "924680",
"button_url": "https://yourdomain.com/verify",
"button_name": "Verify My Email",
"service_contact": "https://yourdomain.com/contact",
"address": "123, Main Street, Mumbai, India",
"contact_number": "+91-9876543210"
}'
{
"token": "YOUR_TOKEN",
"sid": "YOUR_SID",
"to": "user@example.com",
"website_logo": "https://yourdomain.com/images/logo.png",
"website_name": "VerifyOne",
"otp": "924680",
"button_url": "https://yourdomain.com/verify",
"button_name": "Verify My Email",
"service_contact": "https://yourdomain.com/contact",
"address": "123, Main Street, Mumbai, India",
"contact_number": "+91-9876543210"
}
<?php
$data = [
"token" => "YOUR_TOKEN",
"sid" => "YOUR_SID",
"to" => "user@example.com",
"website_logo" => "https://yourdomain.com/images/logo.png",
"website_name" => "VerifyOne",
"otp" => "924680",
"button_url" => "https://yourdomain.com/verify",
"button_name" => "Verify My Email",
"service_contact" => "https://yourdomain.com/contact",
"address" => "123, Main Street, Mumbai, India",
"contact_number" => "+91-9876543210"
];
$ch = curl_init("https://verifyone.bhanguz.com/api/send-mail");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type: application/json"]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
$response = curl_exec($ch);
curl_close($ch);
echo $response;
const fetch = require('node-fetch');
const data = {
token: "YOUR_TOKEN",
sid: "YOUR_SID",
to: "user@example.com",
website_logo: "https://yourdomain.com/images/logo.png",
website_name: "VerifyOne",
otp: "924680",
button_url: "https://yourdomain.com/verify",
button_name: "Verify My Email",
service_contact: "https://yourdomain.com/contact",
address: "123, Main Street, Mumbai, India",
contact_number: "+91-9876543210"
};
fetch('https://verifyone.bhanguz.com/api/send-mail', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(data)
})
.then(res => res.json())
.then(console.log)
.catch(console.error);
import requests
data = {
"token": "YOUR_TOKEN",
"sid": "YOUR_SID",
"to": "user@example.com",
"website_logo": "https://yourdomain.com/images/logo.png",
"website_name": "VerifyOne",
"otp": "924680",
"button_url": "https://yourdomain.com/verify",
"button_name": "Verify My Email",
"service_contact": "https://yourdomain.com/contact",
"address": "123, Main Street, Mumbai, India",
"contact_number": "+91-9876543210"
}
response = requests.post("https://verifyone.bhanguz.com/api/send-mail", json=data)
print(response.json())
using System.Net.Http;
using System.Text;
using System.Text.Json;
var client = new HttpClient();
var data = new {
token = "YOUR_TOKEN",
sid = "YOUR_SID",
to = "user@example.com",
website_logo = "https://yourdomain.com/images/logo.png",
website_name = "VerifyOne",
otp = "924680",
button_url = "https://yourdomain.com/verify",
button_name = "Verify My Email",
service_contact = "https://yourdomain.com/contact",
address = "123, Main Street, Mumbai, India",
contact_number = "+91-9876543210"
};
var json = JsonSerializer.Serialize(data);
var response = await client.PostAsync("https://verifyone.bhanguz.com/api/send-mail",
new StringContent(json, Encoding.UTF8, "application/json"));
var result = await response.Content.ReadAsStringAsync();
Console.WriteLine(result);
require 'net/http'
require 'json'
uri = URI('https://verifyone.bhanguz.com/api/send-mail')
data = {
token: "YOUR_TOKEN",
sid: "YOUR_SID",
to: "user@example.com",
website_logo: "https://yourdomain.com/images/logo.png",
website_name: "VerifyOne",
otp: "924680",
button_url: "https://yourdomain.com/verify",
button_name: "Verify My Email",
service_contact: "https://yourdomain.com/contact",
address: "123, Main Street, Mumbai, India",
contact_number: "+91-9876543210"
}
res = Net::HTTP.post(uri, data.to_json, "Content-Type" => "application/json")
puts res.body
package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
)
func main() {
data := map[string]string{
"token": "YOUR_TOKEN",
"sid": "YOUR_SID",
"to": "user@example.com",
"website_logo": "https://yourdomain.com/images/logo.png",
"website_name": "VerifyOne",
"otp": "924680",
"button_url": "https://yourdomain.com/verify",
"button_name": "Verify My Email",
"service_contact": "https://yourdomain.com/contact",
"address": "123, Main Street, Mumbai, India",
"contact_number": "+91-9876543210",
}
body, _ := json.Marshal(data)
resp, _ := http.Post("https://verifyone.bhanguz.com/api/send-mail", "application/json", bytes.NewBuffer(body))
defer resp.Body.Close()
var result map[string]interface{}
json.NewDecoder(resp.Body).Decode(&result)
fmt.Println(result)
}
Success Response:
{
"error": 0,
"message": "Email sent successfully"
}
Error Responses:
{
"error": 1,
"message": "SMTP configuration not found"
}
{
"error": 2,
"message": "Your plan is over, expired time"
}
{
"error": 3,
"message": "Your plan is over, message limit exceeded"
}
{
"error": 4,
"message": "Website not found"
}
{
"error": 5,
"message": "User not found"
}
data object when calling the API.