Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] SMTP and custom header not correct... Re:

From: al:bri:xtra at: 12-Sep-2000 13:20

Jeff Rubin wrote:
> this is a snippet of code from the user manual online: > > send/header [some-one--host--com] "message." make > system/standard/email [ > FROM: [me--host--com] > 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 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 [Al--Bri--xtra--co--nz] "Hello Andrew" make system/standard/email [
[ from: [Al--Bri--xtra--co--nz] [ subject: "A subject line" [ ]
Return-Path: <[Al--Bri--xtra--co--nz]> Received: from [] by (InterMail vM. 201-229-121) with SMTP id <[]> for <[Al--Bri--xtra--co--nz]>; Tue, 12 Sep 2000 13:16:39 +1200 To: [Al--Bri--xtra--co--nz] From: [Al--Bri--xtra--co--nz] Date: Tue, 12 Sep 2000 13:17:39 +1200 Subject: A subject line X-REBOL: http://WWW.REBOL.COM Message-Id: <[]> 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