From 917c4081879153778ec553ed752e29da91b96b0f Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Wed, 9 May 2018 08:08:16 -0400 Subject: [PATCH] catchup --- dom.d | 6 +++++- email.d | 8 +++++++- 2 files changed, 12 insertions(+), 2 deletions(-) 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);