Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: Mail sending problem
Pages: [1] Print
Author Topic: Mail sending problem  (Read 841 times)
kpeters
Newbie
*
Offline Offline

Posts: 24


View Profile
Mail sending problem
« on: January 22, 2007, 08:37:37 PM »

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
Full Member
***
Offline Offline

Posts: 182


View Profile WWW
Re: Mail sending problem
« Reply #1 on: January 23, 2007, 04:04:28 AM »

From should not be a block. String or email should be ok.
Logged
kpeters
Newbie
*
Offline Offline

Posts: 24


View Profile
Re: Mail sending problem
« Reply #2 on: January 23, 2007, 10:24:40 AM »

Thanks Gabriele - who would have figured....

the example for 'send here:

http://rebol.com/docs/words/wsend.html

uses 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
Full Member
***
Offline Offline

Posts: 182


View Profile WWW
Re: Mail sending problem
« Reply #3 on: January 24, 2007, 03:53:46 AM »

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
Full Member
***
Offline Offline

Posts: 113


View Profile
Re: Mail sending problem
« Reply #4 on: January 24, 2007, 10:28:49 PM »

From memory, the RFC does allow for more than one sender.
Logged

Gabriele
Full Member
***
Offline Offline

Posts: 182


View Profile WWW
Re: Mail sending problem
« Reply #5 on: January 25, 2007, 04:06:31 AM »

Graham, I will check on that (someone please make sure it's on RAMBO Smiley ), although I have never seen that used in practice.
Logged
Graham
Full Member
***
Offline Offline

Posts: 113


View Profile
Re: Mail sending problem
« Reply #6 on: January 25, 2007, 01:39:10 PM »

http://www.lesnikowski.com/mail/Rfc/rfc2822.txt

Quote
The 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] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: Mail sending problem
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 07:16:38 AM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2311 Posts in 595 Topics by 4139 Members
Latest Member: DietaVato

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc