🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.help
Article #281

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

#281
From: Jonas Luster
Date: Sun, 28 Dec 1997 00:00
25 lines
2128 bytes
T. de Konink <tkonink@horizon.nl> wrote:

> 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.

>   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);

Why not just uuencode this file and append it as normal text?

Jonas

-- 
.. -.-. ....     | (BodyScan-Trap)          | Infos und Verhaltensregeln zum
.-.. .. . -... . | brian.jones@stones.com   | deutschsprachigen Usenet
.--. . - .-. .-  | (just for you, spammers) | gibts hier: de.newusers.infos
Technical Details
Message-ID: <685mr7$e0$1@saddhata.jonas.odn.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <34A6426F.BD836B04@horizon.nl>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10684a,3318ada5ca4c198b
X-Google-Attributes: gid10684a,public
X-Google-Thread: 1103af,3318ada5ca4c198b
X-Google-Attributes: gid1103af,public
X-Google-Thread: 1078db,3318ada5ca4c198b
X-Google-Attributes: gid1078db,public
X-Google-Thread: f4e7c,3318ada5ca4c198b
X-Google-Attributes: gidf4e7c,public
X-Google-Thread: 100b1f,3318ada5ca4c198b
X-Google-Attributes: gid100b1f,public
X-Google-Thread: 10d8ad,3318ada5ca4c198b
X-Google-Attributes: gid10d8ad,public
X-Google-Thread: fb7d6,3318ada5ca4c198b
X-Google-Attributes: gidfb7d6,public
From: jonas@gmx.de (Jonas Luster)
Subject: Re: HELP !!! Attachment with sendmail (Perl under linux)
Date: 1997/12/28
Message-ID: <685mr7$e0$1@saddhata.jonas.odn.de>
X-Deja-AN: 310766010
Sender: jonas@saddhata.jonas.odn.de
References: <34A6426F.BD836B04@horizon.nl>
X-BOFH: Yes
X-Coffeelevel: High
X-Server-Date: 28 Dec 1997 14:13:59 GMT
X-Editor: vi - was sonst?
Organization: Kentucky Fried Linux
Newsgroups: comp.os.linux.help,comp.os.linux.misc,de.comp.os.linux.misc,fj.os.linux,linux.dev.net,nl.comp.os.linux,uk.comp.os.linux
X-Too-Much-X-Headers: Yes
X-DAU: PLONK