Sends template-based emails using your active SMTP settings. Supports dynamic variables and OTP tracking.
POST https://verifyone.bhanguz.com/api/v1/send-mail
| Field | Type | Description |
|---|---|---|
| token | string | Website API token |
| sid | string | Website ID |
| to | Recipient email | |
| send_type | string | Delivery type: email. |
| website_logo | string | Logo URL (optional) |
| website_name_tagline | string | Tagline text (optional) |
| name | string | Recipient name (optional) |
| otp | string | OTP or code (optional) |
| image | string | Banner image (optional) |
| button_name | string | CTA button label (optional) |
| button_url | string | CTA button URL (optional) |
| website_name | string | Website name (optional) |
| website_url | string | Main website URL (optional) |
| service_contact | string | Support contact (optional) |
| contact_number | string | Phone number (optional) |
| footer_note | string | Footer text (optional) |
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", "sent_type": "email" }'
{ "token": "YOUR_TOKEN", "sid": "YOUR_SID", "to": "user@example.com", "sent_type": "email" }
<?php
$data = ["token"=>"YOUR_TOKEN","sid"=>"YOUR_SID","to"=>"user@example.com","sent_type"=>"email"];
$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",sent_type:"email"};
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);
import requests
data={"token":"YOUR_TOKEN","sid":"YOUR_SID","to":"user@example.com","sent_type":"email"}
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", sent_type = "email" };
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", sent_type: "email" }
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",
"sent_type": "email",
}
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"
}