🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.os.linux.slackware
Article #181

HELP !!! Attachment with sendmail (Perl under linux)

#181
From: T. de Konink
Date: Sun, 28 Dec 1997 00:00
30 lines
1935 bytes
Hi,

I want a file from an server (linux) sended to me automaticly by mail.
Therefore I want to
make a Perl-script that uses "sendmail", to send me the file. But I
don't know how to
attach a file whitin the mail using sendmail.

QUESTION :
How can I attach a file to a mail-message using a Perl script under
linux. I know how to
send a mail (see below), but I don't know how to attatch an file. If you
know how to do
it, I would be glad to hear from you.

Thanks in advance,

Thomas de Konink
mailto:tkonink@horizon.nl

PS: As far as I am:

  open(MAIL, "|/usr/lib/sendmail tkonink@horizon.nl");
  print MAIL "Reply-to: $in{'email'} ($in{'naam'})\n";
  print MAIL "Subject: Aanmelding Email Lijst\n";
  print MAIL "Datum   : $date1  Tijd: $time1 \n\n";
  print MAIL "E-mail adres: $in{'email'} \n\n";
  print MAIL "Remote IP address: $ENV{'REMOTE_ADDR'}\n";
  close(MAIL);
Technical Details
Message-ID: <34A64252.12532BA7@horizon.nl>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5392,71de73cab0a184b9,start
X-Google-Attributes: gidf5392,public
X-Google-Thread: f906c,71de73cab0a184b9,start
X-Google-Attributes: gidf906c,public
X-Google-Thread: 100a19,71de73cab0a184b9,start
X-Google-Attributes: gid100a19,public
X-Google-Thread: f9382,71de73cab0a184b9,start
X-Google-Attributes: gidf9382,public
X-Google-Thread: faa64,71de73cab0a184b9,start
X-Google-Attributes: gidfaa64,public
From: "T. de Konink" <tkonink@horizon.nl>
Subject: HELP !!! Attachment with sendmail (Perl under linux)
Date: 1997/12/28
Message-ID: <34A64252.12532BA7@horizon.nl>
X-Deja-AN: 310742553
Cache-Post-Path: noon.horizon.nl!unknown@dawn12.horizon.nl
Content-Transfer-Encoding: 7bit
X-Server-Date: 28 Dec 1997 12:14:56 GMT
Content-Type: text/plain; charset=us-ascii
Organization: Horizon Internet
Mime-Version: 1.0
Reply-To: tkonink@horizon.nl
Newsgroups: alt.os.linux.slackware,be.comp.os.linux,alt.os.linux,comp.os.linux,comp.os.linux.development.system