I haven't tested these personally, but OK. This would be how to do it the
hard way.
OK, you're sending an email with an attachment. First, this attachment
will have to be encoded, either UUENCODE or Base64.
<
http://hobbes.nmsu.edu/h-viewer.php?dir=/pub/os2/dev/
rexx&file=base64.zip>
is an example REXX program that will do the encode.
The encoded block of text for the attachment will have to be combined
with the text of the email in proper MIME/multipart format. This is just
text manipulation, straightforward with REXX,you'll have to look at the
MIME RFCs to see how that should look. Mpack saves you all this trouble,
can also be used to write an output file as an example of what the email
should look like raw.
Once your email with attachment is MIME formatted properly, you'll want
to send it out via SMTP to a trusted server. Here's an article with
example code that purports to so this:
<
http://www.edm2.com/index.php/
Send_Mail_to_an_Email_List_with_REXX,_SMTP_and_Sockets>
A local SMTP server or pmmsend.exe would save you the trouble here.
Those would eb most of the parts you'd need.
Have fun!
-Derek