Top Fields Constructors Methods
com.mchange.net

public Class SmtpMailSender

extends Object
implements MailSender
Class Inheritance
All Implemented Interfaces
com.mchange.net.MailSender
Imports
java.io.*, java.net.*, java.util.Properties

Field Summary

Modifier and TypeField and Description
pack-priv InetAddress
pack-priv int

Constructor Summary

AccessConstructor and Description
public
SmtpMailSender(InetAddress hostAddr, int port)

public
public
SmtpMailSender(String host, int port)

public

Method Summary

Modifier and TypeMethod and Description
public static void
main(String[] argv)

private static String
public void
sendMail(String from, String[] to, String[] cc, String[] bcc, String subject, String body, String enc)

Implements com.mchange.net.MailSender.sendMail.

cc and bcc may be null.

public void
sendMail(String from, String[] to, String[] cc, String[] bcc, String subject, String body)

Implements com.mchange.net.MailSender.sendMail.

cc and bcc may be null.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

hostAddrback to summary
pack-priv InetAddress hostAddr
portback to summary
pack-priv int port

Constructor Detail

SmtpMailSenderback to summary
public SmtpMailSender(InetAddress hostAddr, int port)
SmtpMailSenderback to summary
public SmtpMailSender(InetAddress hostAddr)
SmtpMailSenderback to summary
public SmtpMailSender(String host, int port) throws UnknownHostException
SmtpMailSenderback to summary
public SmtpMailSender(String host) throws UnknownHostException

Method Detail

mainback to summary
public static void main(String[] argv)
makeRecipientStringback to summary
private static String makeRecipientString(String[] to)
sendMailback to summary
public void sendMail(String from, String[] to, String[] cc, String[] bcc, String subject, String body, String enc) throws IOException, ProtocolException, UnsupportedEncodingException

Implements com.mchange.net.MailSender.sendMail.

Doc from com.mchange.net.MailSender.sendMail.

cc and bcc may be null.

sendMailback to summary
public void sendMail(String from, String[] to, String[] cc, String[] bcc, String subject, String body) throws IOException, ProtocolException

Implements com.mchange.net.MailSender.sendMail.

Doc from com.mchange.net.MailSender.sendMail.

cc and bcc may be null. Uses the default encoding...