cz.utb.fai.simkovicp.pki.mail
Class Sender
java.lang.Object
cz.utb.fai.simkovicp.pki.mail.Sender
- All Implemented Interfaces:
- java.io.Serializable
public class Sender
- extends java.lang.Object
- implements java.io.Serializable
This class provides the sending of the email.
- See Also:
- Serialized Form
|
Method Summary |
byte[] |
send(java.util.List<Recipient> recipients,
java.lang.String subject,
java.lang.String body,
java.util.List<Attachment> attachments,
boolean sign,
boolean encrypt,
EncryptionBean signBean,
EncryptionBean encBean,
boolean out)
Sends the email. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Sender
public Sender()
send
public byte[] send(java.util.List<Recipient> recipients,
java.lang.String subject,
java.lang.String body,
java.util.List<Attachment> attachments,
boolean sign,
boolean encrypt,
EncryptionBean signBean,
EncryptionBean encBean,
boolean out)
throws MailException
- Sends the email.
- Parameters:
recipients - - the list of mail recipientssubject - - the subjectbody - - the bodyattachments - - the list of attachmentssign - - true for signing the emailencrypt - - true for crypt the emailsignBean - - the bean with signing certificate infoencBean - - the bean with crypt certificate infoout - - true if this method shall return the sent email
- Returns:
- sent email
- Throws:
MailException