Hi
I am trying to get a date into the header of an email created with MIME::Lite, which I have used many times before. I think the problem may be associated with the server we are using but I want to rule out my numbness before I complain to them.
According to the CPAN docs, missing the date variable forces it to create a current date and asssign it to the header. It is assigning a base date in 1970 so clearly isn't working.
Further CPAN reading says that a date can be created with a 'simple' module - Email:ate::Format;
It might be simple to you guys but using
as stated in the docs throws a bare word error.
Trying it as a function
throws an unknown function error.
What is the correct syntax and why do the CPAN 'examples' throw errors?
Keith
I am trying to get a date into the header of an email created with MIME::Lite, which I have used many times before. I think the problem may be associated with the server we are using but I want to rule out my numbness before I complain to them.
According to the CPAN docs, missing the date variable forces it to create a current date and asssign it to the header. It is assigning a base date in 1970 so clearly isn't working.
Further CPAN reading says that a date can be created with a 'simple' module - Email:ate::Format;
It might be simple to you guys but using
Code:
my $date = email_date; # now
Trying it as a function
Code:
my $date = email_date(); # now
What is the correct syntax and why do the CPAN 'examples' throw errors?
Keith