backup email generation scripts