Mercurial Hosting > nabble
comparison src/fschmidt/util/mail/nomail/SmtpServerImpl.java @ 68:00520880ad02
add fschmidt source
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Sun, 05 Oct 2025 17:24:15 -0600 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 67:9d0fefce6985 | 68:00520880ad02 |
|---|---|
| 1 package fschmidt.util.mail.nomail; | |
| 2 | |
| 3 import org.slf4j.Logger; | |
| 4 import org.slf4j.LoggerFactory; | |
| 5 import fschmidt.util.mail.Mail; | |
| 6 import fschmidt.util.mail.SmtpServer; | |
| 7 import fschmidt.util.mail.MailAddress; | |
| 8 | |
| 9 | |
| 10 final class SmtpServerImpl implements SmtpServer { | |
| 11 private static final Logger logger = LoggerFactory.getLogger(SmtpServerImpl.class); | |
| 12 | |
| 13 public void send(Mail mail,MailAddress... addresses) { | |
| 14 logger.warn("no mail sent"); | |
| 15 } | |
| 16 | |
| 17 public void sendFrom(Mail mail,String smtpFrom) { | |
| 18 logger.warn("no mail sent"); | |
| 19 } | |
| 20 | |
| 21 public void useSsl() {} | |
| 22 public void useStartTls() {} | |
| 23 public void setPort(int port) {} | |
| 24 // public void setSmtpFrom(String smtpFrom) {} | |
| 25 public void setDebug(boolean b) {} | |
| 26 public String getUserName() { | |
| 27 return null; | |
| 28 } | |
| 29 } |
