Hi Petra :-)

[EMAIL PROTECTED] wrote:

> A REBOL newbie
> Would someone explain the difference between using send and using the mailsend.r 
>file?  I've been in a tizzy all day over this.  Thanks, Petra

What's the problem, please? Let's look at mailsend.r (I just hope it's file you are 
talking about :-):

REBOL [
    Title: "Email Message Sender"
    File:  %mailsend.r
    Date:  10-Sep-1999
    Purpose: {A very simple way to send an email.}
    Note: {
        The TRIM function below is used to remove the blank
        lines from the head of the email, so that the first
        line of text gets used as the subject.
    }
]

send [EMAIL PROTECTED] trim {

Hi there.

Just wanted to send you an email message from REBOL.

-Friend
}


Trim removes the spaces from the head and tail of the string.

Let's also see, what help send tells us:

->> help send
Send a message to an address (or block of addresses)
Arguments:
    address -- An address or block of addresses (email block)
    message -- Text of message. First line is subject.
Refinements:
    /only -- Send only one message to multiple addresses
    /header -- Supply your own custom header
        header-obj -- The header to use (object)

Do you see "message" description? First line is subject. IIRC if newline char is not 
found "^/" first 50 chars are used as a subject. You can also
look at 'send source, by directly typing in the console:

->> source send

Or just look at the manual: http://www.rebol.com/manual/netsmtp.html

hope-this-helps,

-pekr-

Reply via email to