try this. Instead of always sending mailfile.r, send the file
specified on the command line.
Sterling
REBOL [
Title: "Email a Text File"
File: %mailfile.r
Date: 10-Sep-1999
Purpose: {Send a text file (as text of message).}
Note: {
Puts the name of the file in the subject line.
}
]
file: to-file system/options/args ;name of file to send
send [EMAIL PROTECTED] reform [
"File:" file newline newline read file
]
> My command on Linux is:
>
> $rebol mailfile.r readme.txt
> - where readme.txt is in the current directory and mailfile.r is in
> ../rebol off the current directory.
>
> rebol runs and sends me the mailfile.r script.
>
> What am I doing wrong? Something silly, obvious and stupid, obviously!
>
> - fleet -
>
> (so noone will need to go look it up - here is the script as I have it for
> my machine.)