Add ExpTime restriction and mail-send function