|
Pages: [1]
|
 |
|
Author
|
Topic: Mail sending problem (Read 841 times)
|
|
kpeters
|
Hi List ~ This works just fine: >> send/subject kai@domain.com {message body...} "Subject goes here" This one doesn't - any ideas someone? >> header: make system/standard/email [ [ To: [ kai@domain.com] [ From: [ karl@gmail.com] [ Subject: "Message with a header" [ Organization: "REBOL Alliance" [ ] >> send/header kai@domain.com trim { { This is a longer message that also contains a { header. { } header ** User Error: ESMTP: Invalid command ** Near: insert smtp-port reduce [from reduce [addr] message] TIA Kai
|
|
|
|
« Last Edit: January 22, 2007, 08:47:22 PM by kpeters »
|
Logged
|
|
|
|
|
Gabriele
|
From should not be a block. String or email should be ok.
|
|
|
|
|
Logged
|
|
|
|
|
kpeters
|
Thanks Gabriele - who would have figured.... the example for 'send here: http://rebol.com/docs/words/wsend.htmluses a block and I am positive that a block has worked in an earlier script of mine running under a Linux executable... Kai
|
|
|
|
|
Logged
|
|
|
|
|
Gabriele
|
Hmm, I think that the docs should be changed; it does not make much sense to allow From being a block, since it does not make much sense to have more than one address there. OTOH, SEND should probably catch this case and use the first address in the block; please add this to RAMBO.
|
|
|
|
|
Logged
|
|
|
|
|
Graham
|
From memory, the RFC does allow for more than one sender.
|
|
|
|
|
Logged
|
|
|
|
|
Gabriele
|
Graham, I will check on that (someone please make sure it's on RAMBO  ), although I have never seen that used in practice.
|
|
|
|
|
Logged
|
|
|
|
|
Graham
|
http://www.lesnikowski.com/mail/Rfc/rfc2822.txtThe originator fields indicate the mailbox(es) of the source of the message. The "From:" field specifies the author(s) of the message, that is, the mailbox(es) of the person(s) or system(s) responsible for the writing of the message. The "Sender:" field specifies the mailbox of the agent responsible for the actual transmission of the message. For example, if a secretary were to send a message for another person, the mailbox of the secretary would appear in the "Sender:" field and the mailbox of the actual author would appear in the "From:" field. If the originator of the message can be indicated by a single mailbox and the author and transmitter are identical, the "Sender:" field SHOULD NOT be used. Otherwise, both fields SHOULD appear.
|
|
|
|
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
 |
News: 01-09-08 Alpha version of REBOL 3 has been released!
2311 Posts in 595 Topics by 4139 Members
Latest Member: DietaVato
|