e_message_last_sent
php
boolean e_message_last_sent(array|integer $data = 0 , integer $typ = 0)Checks whether an email and/or SMS message was sent during the specified period.
Warning
Requires an email address context.
Parameters:
$data- period for which information about sent SMS messages is returned. If an array is provided, the first element is the lower time boundary and the second is the upper boundary: array($from - timestamp, $to - timestamp). If a single timestamp is provided, SMS messages sent after that timestamp are considered.$typ-- 0 - all
- 1 - email
- 2 - transactional email
- 3 - sms
- 4 - transactional SMS
Example:
php
$daysAgo = 3;
$after = time()-($daysAgo*60*60*24);
print_r(e_message_last_sent($after));Result: 1