This template is used for confirmation or registration emails. It supports OTP display, button actions, banners, and footer notes for user guidance.
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 | Small tagline or text next to the logo. |
otp |
string | One-time password/confirmation code shown to the user. |
button_url |
string | URL linked to the confirmation/registration button. |
button_name |
string | Text label for the call-to-action button. |
image |
string | Banner or optional image displayed below the OTP. |
website_url |
string | Main website URL shown in the footer. |
website_name |
string | Name of the website, used in footer and text references. |
service_contact |
string | Customer support email or phone. |
footer_note |
string | Informational note at the bottom of the email (e.g., why you received this). |
| Variable | Sample Value |
|---|---|
website_logo |
https://yourdomain.com/assets/logo.png |
website_name_tagline |
Secure Identity Platform |
otp |
473291 |
button_url |
https://yourdomain.com/complete-registration |
button_name |
Confirm Email |
image |
https://yourdomain.com/assets/banner.jpg |
website_url |
https://yourdomain.com |
website_name |
VerifyOne |
service_contact |
support@yourdomain.com |
footer_note |
You signed up for our service |
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/assets/logo.png",
"website_name_tagline": "Secure Identity Platform",
"otp": "473291",
"button_url": "https://yourdomain.com/complete-registration",
"button_name": "Confirm Email",
"image": "https://yourdomain.com/assets/banner.jpg",
"website_url": "https://yourdomain.com",
"website_name": "VerifyOne",
"service_contact": "support@yourdomain.com",
"footer_note": "You signed up for our service"
}'
{
"token": "YOUR_TOKEN",
"sid": "YOUR_SID",
"to": "user@example.com",
"website_logo": "https://yourdomain.com/assets/logo.png",
"website_name_tagline": "Secure Identity Platform",
"otp": "473291",
"button_url": "https://yourdomain.com/complete-registration",
"button_name": "Confirm Email",
"image": "https://yourdomain.com/assets/banner.jpg",
"website_url": "https://yourdomain.com",
"website_name": "VerifyOne",
"service_contact": "support@yourdomain.com",
"footer_note": "You signed up for our service"
}
<?php
$data = [
"token" => "YOUR_TOKEN",
"sid" => "YOUR_SID",
"to" => "user@example.com",
"website_logo" => "https://yourdomain.com/assets/logo.png",
"website_name_tagline" => "Secure Identity Platform",
"otp" => "473291",
"button_url" => "https://yourdomain.com/complete-registration",
"button_name" => "Confirm Email",
"image" => "https://yourdomain.com/assets/banner.jpg",
"website_url" => "https://yourdomain.com",
"website_name" => "VerifyOne",
"service_contact" => "support@yourdomain.com",
"footer_note" => "You signed up for our service"
];
$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/assets/logo.png",
website_name_tagline: "Secure Identity Platform",
otp: "473291",
button_url: "https://yourdomain.com/complete-registration",
button_name: "Confirm Email",
image: "https://yourdomain.com/assets/banner.jpg",
website_url: "https://yourdomain.com",
website_name: "VerifyOne",
service_contact: "support@yourdomain.com",
footer_note: "You signed up for our service"
};
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/assets/logo.png",
"website_name_tagline": "Secure Identity Platform",
"otp": "473291",
"button_url": "https://yourdomain.com/complete-registration",
"button_name": "Confirm Email",
"image": "https://yourdomain.com/assets/banner.jpg",
"website_url": "https://yourdomain.com",
"website_name": "VerifyOne",
"service_contact": "support@yourdomain.com",
"footer_note": "You signed up for our service"
}
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/assets/logo.png",
website_name_tagline = "Secure Identity Platform",
otp = "473291",
button_url = "https://yourdomain.com/complete-registration",
button_name = "Confirm Email",
image = "https://yourdomain.com/assets/banner.jpg",
website_url = "https://yourdomain.com",
website_name = "VerifyOne",
service_contact = "support@yourdomain.com",
footer_note = "You signed up for our service"
};
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/assets/logo.png",
website_name_tagline: "Secure Identity Platform",
otp: "473291",
button_url: "https://yourdomain.com/complete-registration",
button_name: "Confirm Email",
image: "https://yourdomain.com/assets/banner.jpg",
website_url: "https://yourdomain.com",
website_name: "VerifyOne",
service_contact: "support@yourdomain.com",
footer_note: "You signed up for our service"
}
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/assets/logo.png",
"website_name_tagline": "Secure Identity Platform",
"otp": "473291",
"button_url": "https://yourdomain.com/complete-registration",
"button_name": "Confirm Email",
"image": "https://yourdomain.com/assets/banner.jpg",
"website_url": "https://yourdomain.com",
"website_name": "VerifyOne",
"service_contact": "support@yourdomain.com",
"footer_note": "You signed up for our service",
}
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.