This template is designed for personalized OTP verification. It supports user name, branding, banner image, and footer details for a complete email experience.
POST https://verifyone.bhanguz.com/api/v1/send-mail
| Variable | Type | Description |
|---|---|---|
website_logo |
string | URL of the website logo shown in the header. |
website_name_tagline |
string | Short tagline or name shown next to the logo. |
name |
string | Full name of the recipient. |
otp |
string | One-Time Password for identity verification. |
image |
string | Banner image displayed below the OTP. |
button_name |
string | Text displayed on the call-to-action button. |
button_url |
string | URL linked to the call-to-action button. |
website_name |
string | Name of the website/service shown in the footer. |
website_url |
string | Website URL linked in the footer. |
service_contact |
string | Support email/phone/URL for customer help. |
footer_note |
string | Custom informational note displayed at the bottom. |
| Variable | Sample Value |
|---|---|
website_logo |
https://yourdomain.com/logo.png |
website_name_tagline |
Secure Verification System |
name |
Prince |
otp |
927641 |
image |
https://yourdomain.com/banner.jpg |
button_name |
Verify Now |
button_url |
https://yourdomain.com/verify |
website_name |
VerifyOne |
website_url |
https://yourdomain.com |
service_contact |
mailto:support@yourdomain.com |
footer_note |
This message was sent as part of identity verification. |
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/logo.png",
"website_name_tagline": "Secure Verification System",
"name": "Prince",
"otp": "927641",
"image": "https://yourdomain.com/banner.jpg",
"button_name": "Verify Now",
"button_url": "https://yourdomain.com/verify",
"website_name": "VerifyOne",
"website_url": "https://yourdomain.com",
"service_contact": "mailto:support@yourdomain.com",
"footer_note": "This message was sent as part of identity verification."
}'
{
"token": "YOUR_TOKEN",
"sid": "YOUR_SID",
"to": "user@example.com",
"website_logo": "https://yourdomain.com/logo.png",
"website_name_tagline": "Secure Verification System",
"name": "Prince",
"otp": "927641",
"image": "https://yourdomain.com/banner.jpg",
"button_name": "Verify Now",
"button_url": "https://yourdomain.com/verify",
"website_name": "VerifyOne",
"website_url": "https://yourdomain.com",
"service_contact": "mailto:support@yourdomain.com",
"footer_note": "This message was sent as part of identity verification."
}
<?php
$data = [
"token" => "YOUR_TOKEN",
"sid" => "YOUR_SID",
"to" => "user@example.com",
"website_logo" => "https://yourdomain.com/logo.png",
"website_name_tagline" => "Secure Verification System",
"name" => "Prince",
"otp" => "927641",
"image" => "https://yourdomain.com/banner.jpg",
"button_name" => "Verify Now",
"button_url" => "https://yourdomain.com/verify",
"website_name" => "VerifyOne",
"website_url" => "https://yourdomain.com",
"service_contact" => "mailto:support@yourdomain.com",
"footer_note" => "This message was sent as part of identity verification."
];
$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/logo.png",
website_name_tagline: "Secure Verification System",
name: "Prince",
otp: "927641",
image: "https://yourdomain.com/banner.jpg",
button_name: "Verify Now",
button_url: "https://yourdomain.com/verify",
website_name: "VerifyOne",
website_url: "https://yourdomain.com",
service_contact: "mailto:support@yourdomain.com",
footer_note: "This message was sent as part of identity verification."
};
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/logo.png",
"website_name_tagline": "Secure Verification System",
"name": "Prince",
"otp": "927641",
"image": "https://yourdomain.com/banner.jpg",
"button_name": "Verify Now",
"button_url": "https://yourdomain.com/verify",
"website_name": "VerifyOne",
"website_url": "https://yourdomain.com",
"service_contact": "mailto:support@yourdomain.com",
"footer_note": "This message was sent as part of identity verification."
}
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/logo.png",
website_name_tagline = "Secure Verification System",
name = "Prince",
otp = "927641",
image = "https://yourdomain.com/banner.jpg",
button_name = "Verify Now",
button_url = "https://yourdomain.com/verify",
website_name = "VerifyOne",
website_url = "https://yourdomain.com",
service_contact = "mailto:support@yourdomain.com",
footer_note = "This message was sent as part of identity verification."
};
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/logo.png",
website_name_tagline: "Secure Verification System",
name: "Prince",
otp: "927641",
image: "https://yourdomain.com/banner.jpg",
button_name: "Verify Now",
button_url: "https://yourdomain.com/verify",
website_name: "VerifyOne",
website_url: "https://yourdomain.com",
service_contact: "mailto:support@yourdomain.com",
footer_note: "This message was sent as part of identity verification."
}
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/logo.png",
"website_name_tagline": "Secure Verification System",
"name": "Prince",
"otp": "927641",
"image": "https://yourdomain.com/banner.jpg",
"button_name": "Verify Now",
"button_url": "https://yourdomain.com/verify",
"website_name": "VerifyOne",
"website_url": "https://yourdomain.com",
"service_contact": "mailto:support@yourdomain.com",
"footer_note": "This message was sent as part of identity verification.",
}
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 missing or invalid"
}
{
"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.image and footer_note can be omitted.otp field is stored in otp_logs for tracking and expiry
management.