Hi,

I need to send simple message to my mobil phone from time to time, and
am bothering with default 'send behavior. I know there is at least many
ways ho to handle it, but why if solution is so simple? :-)

    if not header [
        header-obj: make system/standard/email [
            from: system/user/email
            subject: copy/part message any [find message newline 50]
        ]

I would like REBOL Tech. to remove default behavior of inserting subject
line once again in the message body. I know it was discussed at least
once, but looking at source of 'send, it clearly shows, the philosophy
is broken :-)))

Well, 'send IS already deciding, what is going the 'Subject to contain.
So, there is NO reason, why subject line should be repeated in the body
of message.

Suggestion:

change above code to:

    if not header [
        header-obj: make system/standard/email [
            from: system/user/email
            subject: copy/part message any [find message newline 50]
            remove/part message length? subject   ; the addition ...
        ]

It would make simple appliacation of 'send function easier and more
usefull.

Waiting for comments :-)

btw:

send my-mobil-phone {adsfaf asdfasdf asdfasdf asdf sa
adfds
.}

results in error although message is sent:

** User Error: Server error: tcp 500 Command unrecognized: ".".
** Where: close smtp-port

Why is dot at the end of the message causing a problem?

Thanks,

-pekr-

Reply via email to