Automated Perl email with generated date in subject
Hello,
I'm trying to generate a daily automated HTML email using Perl and MIME::Lite. I have most of what I want working coming to Outlook 2007 clients although I cannot for the life of me get the date to work since moving from text to HTML. The date should be generated behind the subject. I'm a Perl noob so any guidance would be greatly appreciated!
#!/usr/bin/perl -wuse strict;use MIME::Lite;# SendTo email idmy $email = 'user@place.com';# Datemy $date = 'date';# create a new MIME Lite based emailmy $msg = MIME::Lite->new( Subject => $date, From => 'group@place.com', To => $email, Type => 'text/html', Data => '<html> <body lang=EN-US link=blue vlink=purple> <p><b>-Stuff I am working on:</b></p> <p><b>-Stuff I want looked over:</b></p> </body> </html>');$msg->send;
e.g.
Open in new window