[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] perl script-generated sendmail headers



----- Original Message -----
From: "Olaf Alders" <olaf@xxxxxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Sunday, May 26, 2002 10:36 AM
Subject: Re: [cobalt-users] perl script-generated sendmail headers


> on 5/26/02 9:35 AM, David Black wrote:
>
> > Some servers are rejecting our script-generated email messages,
> > and the only reason I can think of, is because our outbound headers
> > have "httpd@localhost" instead of "www.myserver.com [IP addr]"
> > as the "Received: from..." ident. Here's an example (header snip):
> >
> > Return-Path: <user@xxxxxxxxxxxx>
> > Received: (from httpd@localhost)
> >
>
> You might want to try using the MIME::Lite module and sending your
messages
> via SMTP:
>
> $msg->send('smtp', "myserver.com", Timeout=>60);
>
> That makes your mail acceptable for email addresses hosted by companies
like
> excite, which might otherwise bounce your mail.
>
>
> --
> Olaf Alders
>
> olaf@xxxxxxxxxxxxxxx
> http://vilerichard.com
>
> Wed, June 5th -- Vile Richard @ Reverb (Queen and Bathurst, Toronto)

Thanks, Olaf... but I've never used SMTP before, so I'm not sure how to
adapt
my script to use your syntax suggestion. Here's the sub that I'm using now:

    open MAIL, "|/usr/sbin/sendmail -t -i -fuser\@myserver.com";
    print MAIL "To: $to\r\nFrom: $from\nSubject: $subject\n\n$message\n\n";
    close MAIL;

Could you please be more explicit? Thanks again for your valuable time
and knowledge.

:D
--
David Black
Web Developer
http://theWaveCave.com