Send Mail without a file attachment
This commit is contained in:
parent
bc9f84a64c
commit
cef1650686
4 changed files with 21 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
// Copyright (c) 2016, Marcel Kapfer (mmk2410).
|
||||
// Copyright (c) 2016 - 2017, Marcel Kapfer (mmk2410).
|
||||
// MIT License
|
||||
|
||||
import 'dart:convert';
|
||||
|
@ -14,12 +14,14 @@ void sendMail(MouseEvent event) {
|
|||
InputElement text = querySelector("#mailtext");
|
||||
InputElement filename = querySelector("#filename");
|
||||
InputElement addresslist = querySelector("#address_list");
|
||||
CheckboxInputElement nofile = querySelector("#nofile");
|
||||
|
||||
Map data = {
|
||||
"title": title.value,
|
||||
"body": text.value,
|
||||
"filename": filename.value,
|
||||
"list": addresslist.value
|
||||
"list": addresslist.value,
|
||||
"nofile": nofile.checked
|
||||
};
|
||||
|
||||
String url = "res/php/sendmail.php?data=${JSON.encode(data)}";
|
||||
|
@ -31,4 +33,5 @@ void sendMail(MouseEvent event) {
|
|||
window.alert("Failed to send mail.");
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue