From: "LRMK" <[EMAIL PROTECTED]>
> why don't u try MIME::Lite to create mail massage
> and send it using Net::SMTP or anything
> it has ready mate attachment adding facility and it adds
> date and time automatically.
Modules have their authors.
The authors must implement the mo
athne.
- Original Message -
From: "John W. Krahn" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 06, 2003 9:19 AM
Subject: Re: Sent time in a Net::SMTP mail
> Jenda Krynicky wrote:
> >
> > From: "John W. Krahn" <[EMAIL
Jenda Krynicky wrote:
>
> From: "John W. Krahn" <[EMAIL PROTECTED]>
> >
> > $ perl -MPOSIX -MTime::Local -e'
> > $local = time;
> > $gm = timelocal( gmtime $local );
> > $sign = qw( + + - )[ $local <=> $gm ];
> > $calc = sprintf "%s%02d%02d", $sign, (gmtime abs( $local - $gm
> > ))[2,1];
> >
> > p
From: "John W. Krahn" <[EMAIL PROTECTED]>
> Jenda Krynicky wrote:
> >
> > From: "John W. Krahn" <[EMAIL PROTECTED]>
> > > Or, you could do it the "correct" way. :-)
> > >
> > > use POSIX 'strftime';
> > >
> > > my $date = strftime '%a, %d %b %Y %H:%M:%S %z', localtime;
> > > $smtp->datasend( "Dat
Jenda Krynicky wrote:
>
> From: "John W. Krahn" <[EMAIL PROTECTED]>
> > Or, you could do it the "correct" way. :-)
> >
> > use POSIX 'strftime';
> >
> > my $date = strftime '%a, %d %b %Y %H:%M:%S %z', localtime;
> > $smtp->datasend( "Date: $date\n" );
>
> I'm not sure this is the correct way.
>
From: "John W. Krahn" <[EMAIL PROTECTED]>
> Or, you could do it the "correct" way. :-)
>
> use POSIX 'strftime';
>
> my $date = strftime '%a, %d %b %Y %H:%M:%S %z', localtime;
> $smtp->datasend( "Date: $date\n" );
I'm not sure this is the correct way.
This prints
Sun, 05 Jan 2003 18:42:
Jenda Krynicky wrote:
>
> #time diference to GMT - Windows will not set $ENV{'TZ'}, if you know a better way
>...
> my $GMTdiff;
> {
> my $time = time();
> my @local = (localtime($time))[2,1,3,4,5]; # hour, minute, mday, month,
>year; I don't mind year is 1900 based and month 0-1
From: Aman Thind <[EMAIL PROTECTED]>
> Apparently the time zones are correct on my machine.
>
> Statements :
> print scalar(localtime)."\n";
> print scalar(gmtime)."\n";
>
> Output :
> Fri Jan 3 20:35:34 2003
> Fri Jan 3 15:05:34 2003
>
> India is +5:30.
>
> However I think
]
Sent: Friday, January 03, 2003 8:37 PM
To: [EMAIL PROTECTED]
Subject: RE: Sent time in a Net::SMTP mail
From: Aman Thind <[EMAIL PROTECTED]>
> Thanks a lot Jenda...u're a real wizard :)
Shame I can't even get drunk :-}
> There are still just two minor issues which I tho
From: Aman Thind <[EMAIL PROTECTED]>
> Thanks a lot Jenda...u're a real wizard :)
Shame I can't even get drunk :-}
> There are still just two minor issues which I thought I should bring
> to your notice...
>
> The time displayed is 30 mins more than the actual time here.
Are you sure the timez
the email address ?
Thanks again
aman
-Original Message-
From: Jenda Krynicky [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 7:38 PM
To: [EMAIL PROTECTED]
Subject: Re: Sent time in a Net::SMTP mail
From: Aman Thind <[EMAIL PROTECTED]>
> Please help me sort the followin
From: Aman Thind <[EMAIL PROTECTED]>
> Please help me sort the following two issues :
See below.
> 1 ) I cannot display the Sent time in MS Outlook in a mail generated
> using Net::SMTP.
> With the code I am using , the Sent field in the Outlook pane
> comes
> blank.
>
> 2 ) I cannot
12 matches
Mail list logo