Mercurial Hosting > nabble
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/fschmidt/util/mail/nomail/SmtpServerImpl.java Sun Oct 05 17:24:15 2025 -0600 @@ -0,0 +1,29 @@ +package fschmidt.util.mail.nomail; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import fschmidt.util.mail.Mail; +import fschmidt.util.mail.SmtpServer; +import fschmidt.util.mail.MailAddress; + + +final class SmtpServerImpl implements SmtpServer { + private static final Logger logger = LoggerFactory.getLogger(SmtpServerImpl.class); + + public void send(Mail mail,MailAddress... addresses) { + logger.warn("no mail sent"); + } + + public void sendFrom(Mail mail,String smtpFrom) { + logger.warn("no mail sent"); + } + + public void useSsl() {} + public void useStartTls() {} + public void setPort(int port) {} +// public void setSmtpFrom(String smtpFrom) {} + public void setDebug(boolean b) {} + public String getUserName() { + return null; + } +}