Converts MAIL-OUTPUT-STREAM to a multipart MIME email. Converts all attachments to MIME parts of an attachment disposition and adds them to the MIME email. Converts the content of the stream to a MIME attachment according to the original MIME type of the stream and encodes it appropriately.
The CONTENT slot of MAIL-OUTPUT-STREAM is expected to be an XML structure comparable to what XMLS would output after parsing XML. The content is parsed for any images in file locations which are loaded, encoded and turned into MIME attachments. The XML is modified to have the image source point to the content ID of the new attachment. The XML itself is converted into a text equivalent which is put in a text/plain MIME part while the XML itself is output as XHTML in a text/html MIME part. Note: the process of attaching images is destructive to the XML structure. If you want to keep your XML structure intact make a copy first.
GET-PROTOCOL (URL &OPTIONAL (STRING ))
Obtains the protocol part of URL
Reads a file and returns an unsigned byte array holding the contents
Reads the file located at URL and converts it to base64
Handles the actual sending of the email via the sendmail program
URL-FILENAME (URL &OPTIONAL (STRING ))
Obtains the filename part of URL
URL-PATH (URL &OPTIONAL PATH-START)
Obtains the path part of URL
SPLIT-STRING (SPLITTER STRING SEGMENT-SIZE)
WITH-EMAIL ((STREAM TO &KEY CC BCC SUBJECT FROM REPLY-TO (TYPE text) (SUBTYPE plain) ATTACHMENTS OTHER-HEADERS) &BODY BODY)
Binds STREAM to a MAIL-OUTPUT-STREAM created according to the other arguments then executes BODY within that context. Automatically closes the stream and sends the email upon completion.
SETFERROR-CODE (NEW-VALUE CONDITION)
SETFATTACHMENTS (NEW-VALUE OBJECT)
SETFBCC (NEW-VALUE OBJECT)
SETFCC (NEW-VALUE OBJECT)
SETFOTHER-HEADERS (NEW-VALUE OBJECT)
SETFSUBJECT (NEW-VALUE OBJECT)
SETFTO (NEW-VALUE OBJECT)
SETFFROM (NEW-VALUE OBJECT)
SETFMAIL-OUTPUT-STREAM-STREAM (NEW-VALUE OBJECT)
SETFREPLY-TO (NEW-VALUE OBJECT)
SETFSTRING-STRM (NEW-VALUE OBJECT)
The location of the sendmail program
The basic MAIL-OUTPUT-STREAM.
A mixin for the mail-output-streams. Not intended to be used directly. Use the other streams
A MAIL-OUTPUT-STREAM intended for multipart MIME emails
A MAIL-OUTPUT-STREAM intended for text-only emails