Mercurial Hosting > luan
comparison src/goodjava/mail/Examples.java @ 1830:d72a52232f79
mail - minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 24 Sep 2024 17:17:57 -0600 |
parents | 0eb615de1f80 |
children |
comparison
equal
deleted
inserted
replaced
1829:0eb615de1f80 | 1830:d72a52232f79 |
---|---|
10 | 10 |
11 public class Examples { | 11 public class Examples { |
12 | 12 |
13 private static Smtp newSmtp() throws IOException, MailException { | 13 private static Smtp newSmtp() throws IOException, MailException { |
14 Socket socket = new Socket("smtpcorp.com",2525); | 14 Socket socket = new Socket("smtpcorp.com",2525); |
15 Smtp smtp = new Smtp(socket,"GoodJava"); | 15 Smtp smtp = new Smtp(socket); |
16 smtp.authenticate("luan","luanhost2"); | 16 smtp.authenticate("luan","luanhost2"); |
17 return smtp; | 17 return smtp; |
18 } | 18 } |
19 | 19 |
20 private static void smtp() throws IOException, MailException { | 20 private static void smtp() throws IOException, MailException { |