[REBOL] initializing system/standard/email
From: tim-johnsons::web::com at: 4-Aug-2006 15:35
Seeing some weird problems with 'send...
Partial, but working code:
to-addr: to-email email ;; cast 'email to email data type
to-envelope: make system/standard/email[
To: to-addr
from: info-alaska-internet-solutions.com
subject: subj
]
;; OOPS! error is thrown
Server error: tcp 553 5.0.0 <>... User address required
a dump of probe to-envelope looks like this:
make object! [
To: test-johnsons-web.com ;; looks like email! to me...
CC: none
BCC: none
From: info-alaska-internet-solutions.com
Reply-To: none
Date: none
Subject: "Boreal Imagery Receipt FOR TESTING PURPOSES ONLY."
Return-Path: none
Organization: none
Message-Id: none
Comment: none
X-REBOL: "Core 2.6.2.4.2 http://WWW.REBOL.COM"
MIME-Version: none
Content-Type: none
Content: none
]
solution (in the block):
To: to-email to-addr ;; to-email was already applied!
I would welcome some observations or opinions about this.
On a further note, I made a copy of 'send, used it in my source
and put in debugging stubs. I could see that at the following
line:
if not show [insert clear header-obj/to addr]
;; 'addr is being 'clear'ed
I really love rebol, but I use python also. I have *never*
had legacy python code break with a new installation.
(grumble, grumble)
:-) Inquiring minds want to know.
problem with the 'make action value?
thanks
tim
--
Tim Johnson <tim-johnsons-web.com>
http://www.alaska-internet-solutions.com