SendMIMEMessage

E-mail
Aptilis 2

SendMIMEMessage(MimeType, To, From, Subject, MIMEAttachmentBundle[, ReplyTo])

SendMIMEMessage - allows to specify a mime type together with an encoding, when sending an e-mail.
This will allow you to send attachments.
To create a MIME bundle of base 64 encoded files, follow the MIME specification.
A quick way to create a MIME bundle is to send a message to yourself with the text and the attachments and retrieve it with readEmails.

Mime version is 1.0

Return value:
as for sendMail.

Example:

attach = loadFile("aptilis-attached.txt") $
mimeType = "multipart/mixed; boundary=\"-----X-PROV-952220281157\"" $
sendMimeMessage(mimeType$, to$, from$, subject$, attach$, replyTo$)

See also: setSMTPSever, sendMail, readEMails.