import app from "$app"; import config from "$config"; import persist from "./persist"; const emails = persist("data/emails.json"); app.post("/email", async (req, res) => { try { let file = persist("data/emails.json"); file.emails = [...file.emails, req.body]; try { var postmark = await import("postmark"); var client = new postmark.ServerClient(config.postmark); await client.sendEmail({ From: "support@coinos.io", To: "support@coinos.io", Subject: req.body.subject || "Email Signup", HtmlBody: JSON.stringify(req.body), TextBody: JSON.stringify(req.body), MessageStream: "outbound" }); res.send({ ok: true }); } catch (e) { console.log("problem sending email", e); res.code(500).send(e.message); } } catch (e) { console.log(e); res.code(500).send(e.message); } }); on value='master' selected='selected'>master coinos v3 — bitcoin, Ark, Lightning and nostr wallet (web + Android)coinos
aboutsummaryrefslogtreecommitdiffstats
path: root/tools/dm-row-resort-test.js
blob: 9e400bcf1d1bb5c6988947818d8c89126a3eb44b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110