Questions about the 'send' function
[1/10] from: psa102::toward::com at: 6-Aug-2004 23:07
The Rebol Dictionary says that the send command has these two refinements among others:
/attach
/subject
With these refinements, what would the format of the send command be? Would it be
send/subject /attach address message {subj} [files]
When I try this command I get an error that "attach" is not a valid refinement. Is this
so?
John Wirt
===================END FORWARDED MESSAGE===================
[2/10] from: tomc:darkwing:uoregon at: 6-Aug-2004 20:06
builtin help does not mention /attach
>> ? send
USAGE:
SEND address message /only /header header-obj
DESCRIPTION:
Send a message to an address (or block of addresses)
SEND is a function value.
ARGUMENTS:
address -- An address or block of addresses (Type: email block)
message -- Text of message. First line is subject. (Type: any)
REFINEMENTS:
/only -- Send only one message to multiple addresses
/header -- Supply your own custom header
header-obj -- The header to use (Type: object)
On Fri, 6 Aug 2004, PSA102 wrote:
[3/10] from: moliad:aei:ca at: 6-Aug-2004 23:30
only in later versions ;-)
from v 1.2.10 and on:
USAGE:
SEND address message /only /header header-obj /attach files /subject subj
/show
DESCRIPTION:
Send a message to an address (or block of addresses)
SEND is a function value.
ARGUMENTS:
address -- An address or block of addresses (Type: email block)
message -- Text of message. First line is subject. (Type: any)
REFINEMENTS:
/only -- Send only one message to multiple addresses
/header -- Supply your own custom header
header-obj -- The header to use (Type: object)
/attach -- Attach file, files, or [.. [filename data]]
files -- The files to attach to the message (Type: file block)
/subject -- Set the subject of the message
subj -- The subject line (Type: any)
/show -- Show all recipients in the TO field
[4/10] from: Gary:Jones:usap:gov at: 7-Aug-2004 15:40
From:
PSA102
....
The Rebol Dictionary says that the send command has these two refinements among others:
/attach
/subject
With these refinements, what would the format of the send command be? Would it be
send/subject /attach address message {subj} [files]
When I try this command I get an error that "attach" is not a valid refinement. Is this
so?
John Wirt
*****************
Hi, John,
Try:
send/subject/attach address message {subj} [files]
You were very close. Notice that the second slash refinement immediately follows the
first refinement (no space). This is a general principle in REBOL that refinements are
all together. While it may look more like just a path, in this case it is not. Then
the objects for the refinements follow in order following any parameter required by the
command.
-Scott Jones
[5/10] from: carl:cybercraft at: 7-Aug-2004 15:44
Hi John,
>The Rebol Dictionary says that the send command has these two refinements
>among others:
<<quoted lines omitted: 5>>
>When I try this command I get an error that "attach" is not a valid
>refinement. Is this so?
You shouldn't put a space before the /attach. ie, this should work...
send/subject/attach address message {subj} [files]
Note you can use any order for the refinements, just make sure the order of their arguments
matches the refinement order. ie, this should work too...
send/attach/subject address message [files] {subj}
Hope that helps.
-- Carl Read
[6/10] from: psa102:toward at: 7-Aug-2004 19:02
Maxim,
My goodness. What is v 1.2.10? I have REBOL/Core 2.5.0.3.1. OK, I'll bet I've just
learned that what I
shoudl be using is Rebol/View becuase it has a later version of the Rebol "kernal" functions
than
Rebol/CORE.
What version do I need to order to get the /attach refinement to the send command?
Thanks.
John Wirt
[7/10] from: psa102:toward at: 7-Aug-2004 19:44
Maxim,
Now, I'm thinking 1.2.10 has not quite come out yet.
John
On Fri, 6 Aug 2004 23:30:24 -0400, Maxim Olivier-Adlhoch wrote:
[8/10] from: psa102:toward at: 7-Aug-2004 20:23
Maxim
Now, I've got it. I need to get Sun Solaris. THen I can have v.10.
John Wirt
On Fri, 6 Aug 2004 23:30:24 -0400, Maxim Olivier-Adlhoch wrote:
[9/10] from: moliad:aei:ca at: 7-Aug-2004 21:09
you can get the latest windows REBOL beta releases here:
http://www.rebol.net/builds/031
linux here:
http://www.rebol.net/builds/042
this one is windows version 2.5.8 of REBOL / core
http://www.rebol.net/builds/031/rebol2508031.exe
it includes the send as described.
you can also get the latest REBOL / view:
http://www.rebol.net/builds/031/rebview1248031.exe
HTH
-MAx
[10/10] from: psa102:toward at: 7-Aug-2004 23:59
Maxim, thank you. John Wirt
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted