Download Jar. Uses 715K of libraries. Click here for Pure Java version (3313L/20K).
1 | !7 |
2 | |
3 | p { |
4 | createPWFile(passwordFile()); |
5 | } |
6 | |
7 | static File passwordFile() { |
8 | ret javaxSecretDir("mail-sender-bot-pw"); |
9 | } |
10 | |
11 | html { |
12 | S realPW = assertNempty(loadTextFileTrim(passwordFile())); |
13 | S pw = params.get("pw"); |
14 | if (!eq(pw, realPW)) ret "Bad PW"; |
15 | |
16 | S from = params.get("from"); |
17 | S to = params.get("to"); |
18 | S subject = params.get("subject"); |
19 | S text = params.get("text"); |
20 | |
21 | javaMail_sendThroughLocalhost(from, to, subject, text); |
22 | |
23 | ret "OK, mail sent"; |
24 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030650 |
Snippet name: | Mail Sender Web Bot |
Eternal ID of this version: | #1030650/3 |
Text MD5: | a361535f832523498f0b1b58bf7d3f5a |
Transpilation MD5: | e24f57f54f7946ec63dd2ea30f388eaa |
Author: | stefan |
Category: | javax / web chat bots |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-02-19 15:38:51 |
Source code size: | 489 bytes / 24 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 257 / 1074 |
Version history: | 2 change(s) |
Referenced in: | [show references] |