Class NBaseMailer

java.lang.Object
com.netlang.mail.NBaseMailer
Direct Known Subclasses:
MailConnection

public class NBaseMailer extends Object
The BaseMailer class
  • Constructor Details

    • NBaseMailer

      public NBaseMailer()
      Initializes a newly created ITRBaseMailer
  • 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 contents
      byteAttachmentNames - an array with names of the attachments
      contentType -
      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 contents
      byteAttachmentNames - an array with names of the attachments
      contentType -
      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: