email_to_quarantine
php
bool email_to_quarantine(string $email, array $dateToSet)Adds the specified email address to mailing quarantine with the supplied dates. If the address is already partially quarantined (some dates are set), existing values are preserved. Returns true on success or false on error.
Parameters:
$email- email address to add to quarantine$dateToSet- array of three past Unix timestamps (integers):[0]- quarantine date (quarantine)[1]- quarantine leave date (quarantine_leave)[2]- blocked date (blocked)
Requirements:
- Mailing quarantine must be enabled for the account
- The email address must exist in the database
- All three dates must be positive integer timestamps in the past
- The email address must not already be fully quarantined (all three dates set)
Example
php
$time = time() - 60;
$email = 'example@sare.pl';
email_to_quarantine($email, array($time, $time, $time));