On Fri, Mar 23, 2001 at 09:16:44PM -0500, Todd Goldenbaum wrote:
> Hi,
>
> I am using perl to construct and send qmail messages, and I've found it very
> easy with qmail-inject. But I'm confused about attachments... I found this
> suggestion from the archives of this list:
Did you try MIME::Tools? Check your nearest CPAN mirror for more info. Or
run following:
perl -MCPAN -e 'readme("MIME::Tools")'
>
> % cat {filename} | uuencode {filename} | /var/qmail/bin/qmail-inject
>[EMAIL PROTECTED]
>
> however, when the mail comes in, it looks something like this:
>
> Date: 24 Mar 2001 02:06:32 -0000
> From: [EMAIL PROTECTED]
> Cc: recipient list not shown: ;
>
> begin 664 ngc2903_hst_big.jpg
> M_]C_X``02D9)1@`!`@``9`!D``#_[``11'5C:WD``0`$````4```_^X`#D%D
> M;V)E`&3``````?_;`(0``@("`@("`@("`@,"`@(#!`,"`@,$!00$!`0$!08%
> M!04%!04&!@<'"`<'!@D)"@H)"0P,#`P,#`P,#`P,#`P,#`$#`P,%!`4)!@8)
> M#0L)"PT/#@X.#@\/#`P,#`P/#PP,#`P,#`\,#`P,#`P,#`P,#`P,#`P,#`P,
> M#`P,#`P,#`P,_\``$0@%W@7&`P$1``(1`0,1`?_$`:(````'`0$!`0$`````
> M`````
>
> I'm not very familiar with the standard email spec, but it seems like there
> might be a way to just include a line in the email header that indicates
> a file in the local filesystem to attach, maybe assumiing it's been uuencoded?
>
> thanks,
> Todd
>
--
Kirill