I suspect your request hasn't been answered because it is so broad... Perhaps some questions will help narrow it down:
Which part do you need help with? Perl has libraries which allow you to create html pages, and libaries which allow you to send email, and it has a mechanism to run external programs, including programs like sendmail, which you can use as an alternative to the standard libraries. So did you want help with the sending email part or the creating html part?
What do you mean by 'automatically'? What is the process you are trying to perform?
Shawn