mirror of https://github.com/adamdruppe/arsd.git
catchup
This commit is contained in:
parent
7b186f8d3d
commit
917c408187
6
dom.d
6
dom.d
|
@ -3746,7 +3746,11 @@ class DocumentFragment : Element {
|
||||||
super(_parentDocument);
|
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(Html html) {
|
||||||
this(null);
|
this(null);
|
||||||
|
|
||||||
|
|
8
email.d
8
email.d
|
@ -82,7 +82,13 @@ class EmailMessage {
|
||||||
|
|
||||||
const(MimeAttachment)[] attachments;
|
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) {
|
void addAttachment(string mimeType, string filename, in void[] content, string id = null) {
|
||||||
isMime = true;
|
isMime = true;
|
||||||
attachments ~= MimeAttachment(mimeType, filename, content, id);
|
attachments ~= MimeAttachment(mimeType, filename, content, id);
|
||||||
|
|
Loading…
Reference in New Issue