mailing_planned_count
php
number|bool mailing_planned_count([number|array $ile_godzin])Returns the number of emails scheduled for the current email address. If the optional $ile_godzin parameter is provided, returns the number of emails scheduled within the next $ile_godzin hours. If the parameter is an array of two timestamps, returns data for that time range. Returns false if data_od is greater than data_do.
Warning
Requires an address context.
Example:
php
if ((mailing_sent_count(7*24) + mailing_planned_count()) <=5) {
ok();
} else {
system_skipmessage();
}In this example, the mailing is sent to recipients who have received no more than 5 emails in the last seven days, including emails that are still scheduled.