troubleshooting Question

Automated Perl email with generated date in subject

Avatar of neotide1976
neotide1976 asked on
Perl
6 Comments1 Solution359 ViewsLast Modified:
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 -w
use strict;
use MIME::Lite;
 
# SendTo email id
my $email = 'user@place.com';
 
# Date
my $date = 'date';
 
# create a new MIME Lite based email
my $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;
ASKER CERTIFIED SOLUTION
kukno

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros