[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] PERL / Sendmail interaction on RAQ3
- Subject: Re: [cobalt-developers] PERL / Sendmail interaction on RAQ3
- From: "Jonathan Michaelson" <michaelsonjd@xxxxxxxxxxx>
- Date: Wed May 16 17:32:16 2001
- List-id: Discussion Forum for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
Gareth,
> open (SENDMAIL, "|$SENDMAIL_PATH $TO") || die "Can't open $SENDMAIL!\n";
> print SENDMAIL "From: $REPLYTO ($REPLYTO)\n";
> print SENDMAIL "Reply-To: $REPLYTO ($REPLYTO)\n";
> print SENDMAIL "To: $TO]\n";
> print SENDMAIL "Subject: $SUBJECT\n\n";
> print SENDMAIL "content\n";
> close(SENDMAIL);
>
> When trying this on the RAQ3 i get strange errors.
> Does anyone know if there is a different syntax for interacting with
> sendmail on the RAQ3 or if there is a better way entirely
You should script it as follows:
open (SENDMAIL, "|$SENDMAIL_PATH -t") || die "Can't open $SENDMAIL!\n";
print SENDMAIL "From: $REPLYTO ($REPLYTO)\n";
print SENDMAIL "Reply-To: $REPLYTO ($REPLYTO)\n";
print SENDMAIL "To: $TO\n";
print SENDMAIL "Subject: $SUBJECT\n\n";
print SENDMAIL "content\n";
close(SENDMAIL);
Regards,
Jonathan Michaelson
Way to the Web Ltd
Commercial Perl CGI Scripting