Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1030651 // sendMailThroughScript

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4368L/27K).

svoid sendMailThroughScript(S senderInfo, S from, S to, S subject, S text) {
  LS l = splitAt(senderInfo, "#");
  if (l(l) != 2) fail("Bad mail sender info");
  S url = first(l), pw = second(l);
  print("Sending mail through " + url);
  print("From: " + from);
  print("To: " + to);
  print("Subject: " + subject);
  print("Text:");
  printIndent("> ", text);
  assertStartsWith("OK", postPage(url, +pw, +from, +to, +subject, +text));
}

Author comment

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: 113 / 176
Version history: 3 change(s)
Referenced in: [show references]