buy
Track Email Delivery API

Description

The Track Email Delivery API allows you to check the status of emails sent from the Webuzo server. It returns recipient address, status, date/time, and any error messages. Useful for monitoring and reporting.

Parameters

Simple code

curl --insecure -u "WEBUZO_USER:WEBUZO_PASSWORD" -X GET "https://SERVER_IP:2003/index.php?api=json&act=track_email_delivery"
<?php
	$user = 'Webuzo User';
	$pass = 'Password';
	$host = 'Hostname or Server IP';
	 
	$url = 'https://'.rawurlencode($user).':'.rawurlencode($pass).'@'.$host.':2003/index.php?api=json&act=track_email_delivery';

	// Set the curl parameters 
	$ch = curl_init(); 
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
	curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
	curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5); 
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 

	if(!empty($post)){
		curl_setopt($ch, CURLOPT_POST, 1);
		curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post));
	}

	// Get response from the server. 
	$resp = curl_exec($ch);
	if(!empty(curl_error($ch))){
		echo curl_error($ch); die();
	}

	// The response will hold a string as per the API response method. 
	$res = json_decode($resp, true);
	
	print_r($res);
?>
    Was this page helpful?
    Newsletter Subscription
    Subscribing you to the mailing list