handle scheduled emails