diff --git a/dom.d b/dom.d index 8924708..d48edd3 100644 --- a/dom.d +++ b/dom.d @@ -3746,7 +3746,11 @@ class DocumentFragment : Element { super(_parentDocument); } - /// + /++ + Creates a document fragment from the given HTML. Note that the HTML is assumed to close all tags contained inside it. + + Since: March 29, 2018 (or git tagged v2.1.0) + +/ this(Html html) { this(null); diff --git a/email.d b/email.d index 1f3995a..dda80d0 100644 --- a/email.d +++ b/email.d @@ -82,7 +82,13 @@ class EmailMessage { const(MimeAttachment)[] attachments; - /// + /++ + 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")); + --- + +/ void addAttachment(string mimeType, string filename, in void[] content, string id = null) { isMime = true; attachments ~= MimeAttachment(mimeType, filename, content, id);