Package com.netlang.mail
Class NBaseMailer
java.lang.Object
com.netlang.mail.NBaseMailer
- Direct Known Subclasses:
MailConnection
The
BaseMailer class-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsend(javax.mail.Session session, com.sun.mail.smtp.SMTPTransport transport, String sender, String fromName, String mailTo, String cc, String bcc, String subject, String message, String attachements, List<byte[]> byteAttachemnts, List<String> byteAttachmentNames, String contentType, String replyTo) Send mail messagevoidsend(javax.mail.Session session, String sender, String mailTo, String cc, String bcc, String subject, String message, String attachements, List<byte[]> byteAttachemnts, List<String> byteAttachmentNames, String contentType) Send mail messagejavax.mail.SessionsetupServerSession(String mailserver, boolean authenticationRequired, String user, String password, int port, boolean useSSL, String protocol) Setup the connection to sead mail
-
Constructor Details
-
NBaseMailer
public NBaseMailer()Initializes a newly createdITRBaseMailer
-
-
Method Details
-
send
public void send(javax.mail.Session session, String sender, String mailTo, String cc, String bcc, String subject, String message, String attachements, List<byte[]> byteAttachemnts, List<String> byteAttachmentNames, String contentType) throws com.intellus.base.BCCException Send mail message- Parameters:
session-sender-mailTo-cc-bcc-subject-message-attachements-byteAttachemnts- an array of the attachments contentsbyteAttachmentNames- an array with names of the attachmentscontentType-- Throws:
com.intellus.base.BCCException
-
send
public void send(javax.mail.Session session, com.sun.mail.smtp.SMTPTransport transport, String sender, String fromName, String mailTo, String cc, String bcc, String subject, String message, String attachements, List<byte[]> byteAttachemnts, List<String> byteAttachmentNames, String contentType, String replyTo) throws com.intellus.base.BCCException Send mail message- Parameters:
session-sender-mailTo-cc-bcc-subject-message-attachements-byteAttachemnts- an array of the attachments contentsbyteAttachmentNames- an array with names of the attachmentscontentType-- Throws:
com.intellus.base.BCCException
-
setupServerSession
public javax.mail.Session setupServerSession(String mailserver, boolean authenticationRequired, String user, String password, int port, boolean useSSL, String protocol) Setup the connection to sead mail- Parameters:
mailserver-sender-authenticationRequired-user-password-port-useSSL-useTLS-- Returns:
-