Re: Shell scripts and the SMTP protocol

joe_at_invalid.address
Date: 07/12/04


Date: Mon, 12 Jul 2004 21:22:08 GMT

phhs80@hotpop.com (Paul Smith) writes:

> >> I am wanting to write a script to send an e-mail through the SMTP
> server
> >> of my ISP. What is the proper command to do this?
> >
> > #!/usr/bin/perl
> >
> > use Mail::Mailer;
> >
> > my $mailer = new Mail::Mailer smtp => Server => 'smtp.hotpop.com';
> >
> > $mailer->open( {
> > To => 'My Friend <myfriend@example.com>',
> > From => 'Paul Smith <phhs80@hotpop.com>',
> > Subject => 'This is a test',
> > } );
> >
> > print $mailer <<BODY;
> > Hi,
> >
> > This is a test.
> >
> > Paul
> > BODY
> >
> > $mailer->close;
> >
> > __END__
>
> Meanwhile, I have replaced the smtp server with a different one and
> John Krahn's script worked nicely. Unfortunately, I get the e-mails
> (sent by John's script) showing a time as they were sent one hour
> before. Is there some way of repairing it?

Check your TZ setting. Did you leave out a DST option or something?

Joe

-- 
We can't all be heroes because someone has to sit on the curb and
clap as they go by.
  - Will Rogers


Relevant Pages

  • Re: Migrating to a new server
    ... "Paul Smith" wrote in message ... my only fear is that since the old server is very buggy and full of problems will stop during the process and everything gets corrupted!!! ... You could just add the new server to the existing domain, DCPromo it, transfer the FMSO roles to it and demote the old DC. ... a new domain as well with new usernames etc but will be using same data so I will need to connect both servers together to transfer data ...
    (microsoft.public.exchange.admin)
  • Re: Permissions problem after upgrade
    ... Mark L. Ferguson MS-MVP ... "Paul Smith" wrote in message ... I just upgraded my 2000 server with an additional 1gb RAM. ... respective folder but still they cannot save, ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Shell scripts and the SMTP protocol
    ... Paul Smith wrote: ... I have replaced the smtp server with a different one and ... my @mns = qw; ...
    (comp.unix.shell)
  • Re: Ntpdate fails to start
    ... Paul Smith wrote: ... Does your server as client? ... At booting, ntpdate fails to start, and also the following command fails: ...
    (Fedora)
  • Re: GPOs not being applied
    ... create a new user named Joe in the OU ... create a new GPO and link it to the new OU ... > problem server, and all tests passed. ... >>Derek Melber ...
    (microsoft.public.win2000.group_policy)