public class Sender extends Socket
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
send(Mail mail)
发送邮件
|
boolean |
sendMail()
发送邮件
|
static String |
toBase64(String str)
Base64 编码的一种实现
|
bind, close, connect, connect, getChannel, getInetAddress, getInputStream, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOutputStream, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, toStringpublic Sender(Mail bean) throws UnknownHostException, IOException
bean - 邮件实体IOException - IO异常UnknownHostException - 未知主机异常public boolean sendMail()
throws MailException
MailException - 邮件异常public static boolean send(Mail mail)
mail - 服务器信息和邮件信息Copyright © 2013–2021 AJAXJS. All rights reserved.