Loading . . .
1510 Sector 82, Mohali, Punjab 9.00 am - 9.00 pm
verifyone@bhanguz.com +91 9465434150

First Email Template - Documentation

This template is used for email verification with an OTP and verification button. Variables are dynamically replaced with your website data.

đź”— Endpoint
POST https://verifyone.bhanguz.com/api/1/send-mail
Required Dynamic Data
Variable Type Description
website_logostringURL of the website/app logo shown at the top & bottom of the email.
website_namestringName of the website or service displayed in content.
otpstringVerification code shown to the user.
button_urlstringURL for the verification button redirect.
button_namestringLabel of the verification button.
service_contactstringSupport/Contact page URL for user help.
addressstringOrganization’s mailing address (shown in footer).
contact_numberstringSupport phone number (shown in footer).
Sample Data
Variable Sample Value
website_logohttps://yourdomain.com/images/logo.png
website_nameVerifyOne
otp924680
button_urlhttps://yourdomain.com/verify
button_nameVerify My Email
service_contacthttps://yourdomain.com/contact
address123, Main Street, Mumbai, India
contact_number+91-9876543210
API Request Examples
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)
}
Response

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"
}
Note:
  • All variables must be passed in the data object when calling the API.
  • Missing variables will leave placeholders blank in the email.
  • This template is designed for email OTP verification flows.