Libraryless. Click here for Pure Java version (4368L/27K).
1 | svoid sendMailThroughScript(S senderInfo, S from, S to, S subject, S text) { |
2 | LS l = splitAt(senderInfo, "#"); |
3 | if (l(l) != 2) fail("Bad mail sender info"); |
4 | S url = first(l), pw = second(l); |
5 | print("Sending mail through " + url); |
6 | print("From: " + from); |
7 | print("To: " + to); |
8 | print("Subject: " + subject); |
9 | print("Text:"); |
10 | printIndent("> ", text); |
11 | assertStartsWith("OK", postPage(url, +pw, +from, +to, +subject, +text)); |
12 | } |
Began life as a copy of #1026044
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030651 |
Snippet name: | sendMailThroughScript |
Eternal ID of this version: | #1030651/4 |
Text MD5: | 2a700b96c815169ff7d0b4da28726e43 |
Transpilation MD5: | 2b2daff7653a6d027da0c945dbc34e56 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-02-19 15:53:34 |
Source code size: | 447 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 237 / 345 |
Version history: | 3 change(s) |
Referenced in: | [show references] |