email object
[1/2] from: chalz:earthlink at: 9-Sep-2002 22:54
I have a little question. If I were to copy system/standard/email into a
new email message, and set all of the headers in there, including the To:
field, can I send that object without specifying who it's to on the command
line? Ie, can I "send msg" rather than "send who msg"? I'm looking at REBOL
FOR DUMMIES, and I get this section (pg318):
You can fill in any of these header categories by using the /header refinement
to the send function.
<snip>
Here's an example:
>> send/header [ralph--abooks--com] "testing" make
system/standard/email [from: [ralph--abooks--com]
subject: "a unique subject line"]
I would like to be able to do something like:
msg: make system/standard/email []
msg/to: [someone--somewhere--com]
msg/cc: [another--somewhere--com]
msg/from: system/user/email
msg/subject: "A subject line"
msg/content: {Here's some content}
And then send that object without manually opening a port. Is there some
intermediary function, something between 'send' and 'open smtp://'? Thanks.
--Charles
[2/2] from: al::bri::xtra::co::nz at: 10-Sep-2002 16:04
Charles wrote:
> I would like to be able to do something like:
> msg: make system/standard/email []
<<quoted lines omitted: 3>>
> msg/subject: "A subject line"
> msg/content: {Here's some content}
Just add something like this:
MySend: func [Header [object!]] [
send/header Header/To Header/subject Header
]
MySend Header
And you're done. Caution: Script hasn't been tested!
Andrew Martin
ICQ: 26227169 http://valley.150m.com/
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted