The OpenD Programming Language

EmailMessage.addAttachment

The filename is what is shown to the user, not the file on your sending computer. It should NOT have a path in it.

message.addAttachment("text/plain", "something.txt", std.file.read("/path/to/local/something.txt"));
class EmailMessage
void
addAttachment
(
string mimeType
,
string filename
,
const void[] content
,
string id = null
)

Meta