remove_email_from_quarantine
php
bool remove_email_from_quarantine(string $email)Removes the specified email address from mailing quarantine. Returns true on success or false on error.
Parameters:
$email- email address to remove from quarantine
Requirements:
- Mailing quarantine must be enabled for the account
- The email address must exist in the database
- The email address must be quarantined
Example (removing one address):
php
$email = 'email@example.com';
$result = remove_email_from_quarantine($email);
if ($result) {
print($email . ' - removed from quarantine');
} else {
print($email . ' - NOT removed (not quarantined or an error occurred)');
}Example (removing multiple addresses):
php
$emails = array('jan.kowalski@example.com', 'anna.nowak@example.com', 'piotr.zielinski@example.com');
foreach ($emails as $email) {
$result = remove_email_from_quarantine($email);
if ($result) {
print($email . ' - removed from quarantine');
} else {
print($email . ' - NOT removed (not quarantined or an error occurred)');
}
}