fix sending the e-mails via an SMTP server
test the individual scripts using Test::Script