Added API hooks for sending emails via cron job.