Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MIME::lite date problem

Status
Not open for further replies.

audiopro

Programmer
Apr 1, 2004
3,165
0
0
GB
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::Date::Format;


It might be simple to you guys but using
Code:
my $date = email_date; # now
as stated in the docs throws a bare word error.

Trying it as a function
Code:
my $date = email_date(); # now
throws an unknown function error.

What is the correct syntax and why do the CPAN 'examples' throw errors?


Keith
 
Longshot, have you definately exported the function:

Code:
use Email::Date::Format qw(email_date);

Chris
 
Thanks for to reply.
Yes, the function is imported correctly (I wish the solution was something I had forgotten).

The problem may lie with the virtual server I am working on.
The email I am sending from the server appears in the email queue, is marked as processed but is not being received.

Needs further investigation.

Keith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top