diff options
| author | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
| commit | e1e781bb2135ef78592226f1a3eaba4925702f1f (patch) | |
| tree | 8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/console/MailDialogReceiver.java | |
| download | worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.tar.xz worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.zip | |
Diffstat (limited to 'NET/worlds/console/MailDialogReceiver.java')
| -rw-r--r-- | NET/worlds/console/MailDialogReceiver.java | 220 |
1 files changed, 220 insertions, 0 deletions
diff --git a/NET/worlds/console/MailDialogReceiver.java b/NET/worlds/console/MailDialogReceiver.java new file mode 100644 index 0000000..f75393b --- /dev/null +++ b/NET/worlds/console/MailDialogReceiver.java @@ -0,0 +1,220 @@ +/* */ package NET.worlds.console; +/* */ +/* */ import java.awt.Font; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ class MailDialogReceiver +/* */ implements DialogReceiver +/* */ { +/* */ Console console; +/* 178 */ private static Font font = new Font(Console.message("ConsoleFont"), +/* 179 */ 0, 12); +/* */ +/* */ public MailDialogReceiver(Console console) +/* */ { +/* 183 */ this.console = console; +/* */ } +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public void dialogDone(Object who, boolean confirmed) +/* */ { +/* 192 */ MailDialog dlg = (MailDialog)who; +/* 193 */ dlg.setFont(font); +/* 194 */ if (confirmed) { +/* 195 */ String[] to = dlg.getTo(); +/* 196 */ if (to.length > 0) +/* */ { +/* 198 */ MailMessage msg = new MailMessage(this.console.getSmtpServer(), +/* 199 */ this.console.getLongID() + "@" + this.console.getMailDomain(), +/* 200 */ to[0], dlg.getSubject(), null); +/* */ +/* 202 */ for (int i = 1; i < to.length; i++) { +/* 203 */ msg.addCC(to[i]); +/* */ } +/* */ +/* */ +/* 207 */ msg.appendParagraphs(dlg.getBody()); +/* 208 */ msg.send(); +/* */ } else { +/* 210 */ Console.println(Console.message("No-recipient")); +/* */ } +/* */ } +/* */ } +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\console\MailDialogReceiver.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */
\ No newline at end of file |