Mercurial Hosting > luan
comparison src/goodjava/mail/Examples.java @ 1824:92860f763715
smtpcorp change
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 19 Aug 2024 19:34:24 -0400 |
parents | aed284cae1f0 |
children | 0eb615de1f80 |
comparison
equal
deleted
inserted
replaced
1823:36dfc31fd607 | 1824:92860f763715 |
---|---|
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); | 15 Smtp smtp = new Smtp(socket); |
16 smtp.authenticate("smtp@luan.software","luanhost"); | 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 { |
21 Smtp smtp = newSmtp(); | 21 Smtp smtp = newSmtp(); |