Package com.mchange.net
Interface MailSender
-
- All Known Implementing Classes:
SmtpMailSender
public interface MailSender
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
sendMail(java.lang.String from, java.lang.String[] to, java.lang.String[] cc, java.lang.String[] bcc, java.lang.String subject, java.lang.String body)
cc and bcc may be null.void
sendMail(java.lang.String from, java.lang.String[] to, java.lang.String[] cc, java.lang.String[] bcc, java.lang.String subject, java.lang.String body, java.lang.String encoding)
cc and bcc may be null.
-
-
-
Method Detail
-
sendMail
void sendMail(java.lang.String from, java.lang.String[] to, java.lang.String[] cc, java.lang.String[] bcc, java.lang.String subject, java.lang.String body, java.lang.String encoding) throws java.io.IOException, ProtocolException, java.io.UnsupportedEncodingException
cc and bcc may be null.- Throws:
java.io.IOException
ProtocolException
java.io.UnsupportedEncodingException
-
sendMail
void sendMail(java.lang.String from, java.lang.String[] to, java.lang.String[] cc, java.lang.String[] bcc, java.lang.String subject, java.lang.String body) throws java.io.IOException, ProtocolException
cc and bcc may be null. Uses the default encoding...- Throws:
java.io.IOException
ProtocolException
-
-