STD.System.Email.SendEmailAttachData ( to, subject, body, attachment, mimietype, filename, mailServer, port, sendercc, bcc, highPriority )
| to | A null-terminated string containing a comma-delimited list of the addresses of the intended recipients. The validity of the addresses is not checked, so it is the programmer's responsibility to ensure they are all valid. |
| subject | A null-terminated string containing the subject line. |
| body | A null-terminated string containing the text of the email to send. This must be character encoding "ISO-8859-1 (latin1)" (the ECL default character set). Text in any other character set must be sent as an attachment. |
| attachment | A DATA value containing the binary data to attach. |
| mimetype | A null-terminated string containing the MIME-type of the attachment, which may include entrymeters (such as 'text/plain; charset=ISO-8859-3'). When attaching general binary data for which no specific MIME type exists, use 'application/octet-stream'. |
| filename | A null-terminated string containing the name of the attachment for the mail reader to display. |
| mailServer | Optional. A null-terminated string containing the name of the mail server. If omitted, defaults to the value in the SMTPserver environment variable. |
| port | Optional. An UNSIGNED4 integer value containing the port number. If omitted, defaults to the value in the SMTPport environment variable. |
| sender | Optional. A null-terminated string containing the address of the sender. If omitted, defaults to the value in the emailSenderAddress environment variable. |
| cc | Optional. comma-delimited addresses of carbon-copy recipients. Defaults to an empty string (none). |
| bcc | Optional. comma-delimited addresses of blind-carbon-copy recipients. Defaults to an empty string (none). |
| highPriority | Optional. If true, the message is sent with high priority. Defaults to false (normal priority). |
The SendEmailAttachData function sends an email message with a binary attachment.
Example:
DATA15 attachment := D'test attachment';
STD.System.Email.SendEmailAttachData( 'me@example.com',
'testing 1,2,3',
'this is a test message',
attachment,
'application/octet-stream',
'attachment.txt');