send email with attachement from a beginner
[1/2] from: patrick::scotto::wanadoo::fr at: 18-Sep-2002 20:19
hello,
I tried to send an email with an attachement , and I saw attach.r
(library) but iI don't know use it .
It make a base 64 attachement , and i prefer send the correct
content-type with each attachement.
thank you for your help
[2/2] from: moeller_thorsten:gmx at: 19-Sep-2002 9:36
Hi,
try out this:
Make a script with following content:
REBOL []
;--- Load attach.r
do %attach.r
;--- Making a header
myheader: make system/standard/email
[
Subject: "Mail with REBOL with attachment"
to: [some--address--domain--com]
date: 19-Sep-2002
Content-Type: {text/plain; charset="iso-8859-1"}
]
;--- Defining a Message
mesg: "This is your first mail from Rebol with an attachment
;--- Defining the Attachment
att: %attach.r
;--- Sending the message
mail mesg myheader att
When you try the script please make sure you modified the header settings to
your needs.
Its untested, so i hope it works.
Perhaps you want to use one of the latest Beta Versions of Rebol, where you
don't have to use attach.r. They are available from
http://www.reboltech.com/downloads. Please read the Release notes for more information.
HTH
Thorsten
Librarian comment
Recent versions of REBOL have attach as a refinement of send: