Jeff Rubin wrote:
> this is a snippet of code from the user manual online:
>
> send/header [EMAIL PROTECTED] "message." make
> system/standard/email [
> FROM: [EMAIL PROTECTED]
> subject: "This is my unique subject line."
> ]
>
> according to this you can specify the fields when sending out an email
thru Rebol but I get errors from this code
>
> Script Error: send expected header-obj argument of type: object.
>
> tried some other variations and none work

REBOL/View 0.10.31.3.1 6-Sep-2000
Copyright 2000 REBOL Technologies.  All rights reserved.
>> help 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)
>> send/header [EMAIL PROTECTED] "Hello Andrew" make system/standard/email [
[    from: [EMAIL PROTECTED]
[    subject: "A subject line"
[    ]
>>

Return-Path: <[EMAIL PROTECTED]>
Received: from [203.96.110.124] by mta3-rme.xtra.co.nz
          (InterMail vM.4.01.03.00 201-229-121) with SMTP
          id <20000912011639.LWFB898.mta3-rme.xtra.co.nz@[203.96.110.124]>
          for <[EMAIL PROTECTED]>; Tue, 12 Sep 2000 13:16:39 +1200
To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Date: Tue, 12 Sep 2000 13:17:39 +1200
Subject: A subject line
X-REBOL: 0.10.31.3.1 http://WWW.REBOL.COM
Message-Id: <20000912011639.LWFB898.mta3-rme.xtra.co.nz@[203.96.110.124]>

Hello Andrew

Seems to work OK for me. Try restarting Rebol, you may have accidentally
redefined something.

I hope that helps!

Andrew Martin
ICQ: 26227169
http://members.ncbi.com/AndrewMartin/
http://members.xoom.com/AndrewMartin/
-><-

Reply via email to