https://<subdomain>.sendsmaily.net/api/contact/forget.php
Warning! Use this API endpoint with care. Forgetting permanently affects subscribers and their statistics.
POST method must be used for this query.
Parameters
Request body must contain list of email addresses either as a JSON array (preferred; Content-Type: application/json must be used) or an URLencoded query string.
Example query
Query to forget support@smaily.com and hello@smaily.com.
$username = 'YOUR_USERNAME'; $password = 'YOUR_PASSWORD'; $location = 'https://<subdomain>.sendsmaily.net/api/contact/forget.php'; $query = json_encode(array( 'support@smaily.com', 'hello@smaily.com', )); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $location); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $query); curl_setopt($ch, CURLOPT_USERPWD, "$username:$password"); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', )); $result = curl_exec($ch); curl_close($ch);
Response of successful query
{ 'code': 101, 'message': 'OK' }