program to send bulk mails with a template system