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"));
See Implementation
The filename is what is shown to the user, not the file on your sending computer. It should NOT have a path in it.