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)); }