Package alpine.mail
Class SendMail
- java.lang.Object
-
- alpine.mail.SendMail
-
public class SendMail extends Object
-
-
Constructor Summary
Constructors Constructor Description SendMail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SendMailattachments(File[] attachments)SendMailbcc(String bcc)SendMailbcc(String[] bcc)SendMailbody(String body)SendMailcc(String cc)SendMailcc(String[] cc)SendMaildebug(boolean debug)SendMailfrom(String from)SendMailhost(String host)SendMailpassword(String password)SendMailport(int port)voidsend()SendMailsmtpauth(boolean smtpauth)SendMailsubject(String subject)SendMailto(String to)SendMailto(String[] to)SendMailtrustCert(boolean trustCert)SendMailuseNTLM(boolean useNTLM)SendMailusername(String username)SendMailuseStartTLS(boolean useStartTLS)
-
-
-
Method Detail
-
from
public SendMail from(String from) throws SendMailException
- Throws:
SendMailException
-
to
public SendMail to(String[] to) throws SendMailException
- Throws:
SendMailException
-
to
public SendMail to(String to) throws SendMailException
- Throws:
SendMailException
-
cc
public SendMail cc(String[] cc) throws SendMailException
- Throws:
SendMailException
-
cc
public SendMail cc(String cc) throws SendMailException
- Throws:
SendMailException
-
bcc
public SendMail bcc(String[] bcc) throws SendMailException
- Throws:
SendMailException
-
bcc
public SendMail bcc(String bcc) throws SendMailException
- Throws:
SendMailException
-
port
public SendMail port(int port)
-
useStartTLS
public SendMail useStartTLS(boolean useStartTLS)
-
useNTLM
public SendMail useNTLM(boolean useNTLM)
-
smtpauth
public SendMail smtpauth(boolean smtpauth)
-
trustCert
public SendMail trustCert(boolean trustCert)
-
debug
public SendMail debug(boolean debug)
-
send
public void send() throws SendMailException- Throws:
SendMailException
-
-