[REBOL] Re: Emails with Attachments
From: agem:crosswinds at: 12-May-2001 11:54
>>>>>>>>>>>>>>>>>> Ursprüngliche Nachricht <<<<<<<<<<<<<<<<<<
Am 12.05.01, 09:26:43, schrieb "Kinjal" <[ctaredu--crosswinds--net]> zum
Thema [REBOL] Emails with Attachments:
> how are y'all doin'?
> the requirement was of sending email to multiple recipients,
individually
> addressed.
> the simple line taken from rebolcore-13.html, from the subsection
titled
> "Multiple Recipients"
> send [
[luke--rebol--com][ben--example--com]] message
> does the job pretty well.
> now, the boss wanted attachments.. so i got the script from
>
http://www.rebol.org/email/attach.htmland added a few lines to the
end like
> this:
> emails: [
> [guy1--abc--com]
> [gal1--xyz--com]
> ]
> header: make system/standard/email [
> from: "Hooded Claw <hoodedc @ pqr.com >"
> Subject: "FIY : update"
> organization: "asdf"
> ]
> foreach email emails [
> header/to: email
> mail read %first.txt header [%attached.doc %attached2.doc]
> ]
> this sends the attachments as required, but now it is working one mail
at a
> time.. so if there are several recipients, the mail is sent to each
one, one
> by one... i hope you guys are still with me.
> i was just wondering if i have missed something here.. and if there is
a way
> to send mails, with attachments, the simple way.
Take the script, look at the end,
[
send/header header/to mesg header
reduce [header mesg]
]
remove that (»;send/header ..«) and it returns the email.
Maybe refinement? [if not no-send [send/header..]]
i don't know if send/header can do multiple emails,
but the message alone should then be
[second mail/no-send ..]
?
Volker