Re: Shell scripts and the SMTP protocol
joe_at_invalid.address
Date: 07/12/04
- Next message: joe_at_invalid.address: "Re: comp.unix.shell FAQ - Answers to Frequently Asked Questions"
- Previous message: Heiner Steven: "Re: comp.unix.shell FAQ - Answers to Frequently Asked Questions"
- In reply to: Paul Smith: "Re: Shell scripts and the SMTP protocol"
- Next in thread: John W. Krahn: "Re: Shell scripts and the SMTP protocol"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: joe_at_invalid.address: "Re: comp.unix.shell FAQ - Answers to Frequently Asked Questions"
- Previous message: Heiner Steven: "Re: comp.unix.shell FAQ - Answers to Frequently Asked Questions"
- In reply to: Paul Smith: "Re: Shell scripts and the SMTP protocol"
- Next in thread: John W. Krahn: "Re: Shell scripts and the SMTP protocol"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|